my git cheat sheet

A few tips regarding the usage of git

### On local machine
cd foo_project
git init
git add *
git commit -m "My initial commit message"

### On remote machine (Git remote repository)
cd /home/administrator/git-repositories
mkdir foo-project
cd foo-project
git --bare init

### On local machine, in your git project
git remote add origin ssh://git@192.168.10.23/home/administrator/git-repositories/intranet/foo_project
git push -u origin master

## checkout
git clone benutzername@host:/pfad/zum/repository

 

my git cheat sheet

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top