in Development_techniques minutes

Some Git techniques

Here are some techniques that I handled.

1. Flushing the cache

I had some ‘.’ files that had replicated to the repository on GitHub, so I had to figure out how to flush them.

This technique came up in a search and basically flushes the repository and then puts everything back.

git rm -r --cached .
git add -A
git commit -am 'Removing ignored files'

2. The best way to merge a branch with Master

The best – and safest – way to merge a branch with master.

git checkout master
git pull origin master
git merge test
git push origin master