Updated git (markdown) authored by Jens Hahn's avatar Jens Hahn
# **git** cheat sheet
## Only the first time
* 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 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/*your_name*/Python_course.git```
* set **upstream**: ```git remote add upstream https://github.com/tbphu/Python_course.git```
## Daily work with git
* **pull** repo: ```git pull```
* **commit**: ```git commit -m "I have done this and that" ./meep.py```
* **push** commits: ```git push```
......@@ -11,5 +15,4 @@
* **delete uncommited** changes: ```git checkout .```
* **update forked** repo:
```git fetch upstream```
```git checkout master```
```git merge upstream/master```
\ No newline at end of file