Git Tips and Tricks
Here we give some tips and tricks when you work in a team to manage git project.
1. Always create branch from master.
Tips: Do as always before you create new branch. Untracking file without sync from master probably raise conflicts.
Tricks: checkout to master first
git checkout master
git pull
git checkout -b <your-new-feature-branch>
2. Keep your branch with latest code.
Tips: please do always rebase your current active branch with master. Why you should do this? with rebase your branch will always sync with master if any changed or merged.
Tricks: on your current working branch do this step
git fetch
git rebase origin/master
git pull