Here is a list of most useful GIT commands for me when working with projects on github.
Get latest changes from origin:
git pull / git pull originUpdate fork on github:
git push myforkCreate new branch:
git branch mybranch / git checkout -b mybranchUpdate branch on github:
git push myfork mybranchRebase branch to master:
git checkout mybranchgit rebase masterRemove branch:
git branch -d mybranchgit push myfork :mybranchClone TFS repository:
git tfs clone http://tfs:8080/tfs/DefaultCollection $/some_projectGet latest version:
git tfs pullCheckin commits to TFS:
git tfs ctClone TFS repository with branches:
git tfs clone --with-branches http://tfs:8080/tfs/DefaultCollection $/some_projectCreate bundle:
git bundle create repo.bundle masterCreate bundle from last 10 days:
git bundle create repo.bundle --since=10.days masterCreate repository from bundle:
git clone repo.bundle -b master repoVerify the bundle:
git bundle verify repo.bundlePull from the bundle:
git pull repo.bundle master