Changes
Page history
Updated git (markdown)
authored
Apr 20, 2018
by
Jens Hahn
Hide whitespace changes
Inline
Side-by-side
git.md
View page @
474dcb98
# **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