User Tools

Site Tools


buildsw:reference:git

Git Reference

Git Books

Git Training

Git Cheat Sheets

Git Graphical Clients

Git init

Given you've set up a git daemon on and an empty repository:

cd <project_dir>
git init
git add .
git commit -m 'message'
git remote add origin
git push -u origin master

In case the remote repository is not empty, then you need to use the following sequence:

cd <project_dir>
git init
git add -A .
git pull master
git commit -m "message"
git remote add origin
git push

Git configuration

git config --global user.name "Firstname Lastname"
git config --global user.email email@example.com

Commit

Tagging

Branching

Merging

Rebasing

Git Subtrees

File renames

Resetting changes

Changing Author

Git patching

Misc

Patch management

Using git with a proxy

Setting the proxy configuration:

git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

Unsetting the proxy:

git config --global --unset http.proxy

Check the currently set proxy:

git config --global --get http.proxy
buildsw/reference/git.txt · Last modified: 2017/08/29 17:04 by gwhiteman