github - Working with team in Git -
i working in team on git project , don't understand process should following.
- i clone project working on github
- i checkout develop branch work
- i
git add .; git commit -a
add new files
but working of other team players added new files git gives me error on git push
.
what command should run right before push see if changed anything?
i believe looking git pull
.
this command perform git fetch
changes made colleagues. try perform git merge
merge changes onto local working tree.
if merge not successful need resolve conflicts.
then able perform git push
, colleagues need pull changes before push.
p.s. if have trouble using process use visual git client github, tower, smartgit or others.