Posts

Showing posts with the label branches

git: Syncing local and remote (with deleted) branches git

Sometimes, you delete a branch and if you run git branch -a it still listed under /remote. One way to sync your local branches is to execute the following: git fetch -p After fetching, will remove any remote-tracking branches which no longer exist on the remote. from man git-fetch

git: diff files in different branches

git difftool somebranch:UNREADME otherbranch:README from stackoverflow

git: delete local and remote branch

Delete local branch "serverfix": git branch -d serverfix Delete remote branch "serverfix": git push origin :serverfix progit.org