Have you ever been searching for a console-based tool which allows you to browse a GIT repository or for example lookup the history (commits) of a specific file? On Mac OS: brew install tig On Debian: apt-get install tig Just browse into your working copy and type tig. Looking up the history for a specific […]
The following command will delete the branch "mybranch" from the remote git server: git push origin :mybranch Finally you just have to delete it locally: git branch -d mybranch Doing a git branch -a you should see that your branch "mybranch" has disappeared.
If you have to move an existing GIT repository to a new location or you just want to have a backup of your repository including all your branches and tags you can do the following: You clone the existing repository with the mirror flag, this will also retrieve all branches and tags: git clone –mirror […]
I've been searching for this one, here it is. This will not delete the actual folder or file from your repository or branch (unless you omit the –cached option), but just undo your git add: git rm −r −−cached your_folder git rm −−cached your_file
Use these commands to setup your environment: git config –global user.name "your_name" git config –global user.email "firstname.lastname@example.org" git config –global color.ui auto git config –global core.editor /usr/bin/nano