GIT Commands

How Can We Help?

GIT Commands

GIT setup / initialize

git init
git config --global user.name "Ed de Heus"
git config --global user.email "ed@ed.nl"
git config --global color.ui auto

First check-in to git from excisting folder 

cd /existing_folder
git remote add origin https://gituser@git.nl/group/git-project.git
git add .
git commit -m "Init version"
git push origin master

First checkin-out from git to excisting folder

cd /excisting_folder
git remote add origin https://gituser@git.nl/group/git-project.git
git pull origin master

Save git credentials

git config --global credential.helper store
git pull
Attention: The credentials are saved in plaintext! Everyone on your computer can view this!

Update local version with git

git pull origin master

Get a single file from git

git checkout HEAD^ file/to/overwrite
git pull