git-core git-gui
git config --global user.name <name>
git config --global user.email <email>
git config --global color.ui "auto"
Quick & Dirty Workaround:
chmod a-x .git/hooks/pre-commit
Not as Quick but still dirty: Comment out following lines, so they are ignored/not processed
if (/\s$/) { bad_line("trailing whitespace", $_); }
/> git push <remote_name> <branch> Counting objects: 14, done. Compressing objects: 100% (12/12), done. Writing objects: 100% (13/13), 283.77 KiB, done. Total 13 (delta 2), reused 0 (delta 0) *** Project description file hasn't been set error: hooks/update exited with error code 1 error: hook declined to update refs/heads/master To ssh://login@host/path/to/repo ! [remote rejected] master -> master (hook declined) error: failed to push some refs to 'ssh://login@host/path/to/repo'
chmod -x .git/hooks/update
git --bare init'' (just repository (no project file) is stored)
git clone ssh://<user>@<host>:<port>/path/to/repo /path/to/localfolder
git remote add <remote_repo_name> ssh://<user>@<host>/path/to/repo
git push <remote_repo_name> <branch>
General Workflow:
git pull <remote_repo_name> <branch>
git push <remote_repo_name> <branch>
or, when working with branches:
git push <remote_repo_name> <local_branch>:<remote_branch>
git add .
git commit -a -m "Commit Message"
git branch
git branch <newbranch>
git checkout <newbranch>
git checkout master
git merge --no-ff <newbranch>
git branch -d <newbranch>