Updated git (markdown) authored by Jens Hahn's avatar Jens Hahn
# Set up **git** repo # **git** cheat sheet
* install [```git```](https://git-scm.com/download/) * install [**```git```**](https://git-scm.com/download/)
* set email adress: ```git config --global user.email "meep@meep.com"``` (has to be the email you used in *github.com*) * set email adress: ```git config --global user.email "meep@meep.com"``` (has to be the email you used in *github.com*)
* set name: ```git config --global user.name "meep meep"``` * set name: ```git config --global user.name "meep meep"```
* **clone** the repo: ```git clone https://github.com/tbphu/Python_precourse.git``` * **clone** the repo: ```git clone https://github.com/tbphu/Python_precourse.git```
* **pull** repo: ```git pull``` * **pull** repo: ```git pull```
* **commit**: ```git commit -m "I have done this and that" ./meep.py``` * **commit**: ```git commit -m "I have done this and that" ./meep.py```
* **push** commits: ```git push``` * **push** commits: ```git push```
* **merge** commits: ```git merge```
* check **status** of repo: ```git status```
* **delete uncommited** changes: ```git checkout .```
* **update forked** repo:
```git fetch upstream```
```git checkout master```
```git merge upstream/master```
\ No newline at end of file