|
|
# Set up **git** repo
|
|
|
* install [```git```](https://git-scm.com/download/)
|
|
|
# **git** cheat sheet
|
|
|
* 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```
|
|
|
* **pull** repo: ```git pull```
|
|
|
* **commit**: ```git commit -m "I have done this and that" ./meep.py```
|
|
|
* **push** commits: ```git push``` |
|
|
\ No newline at end of file |
|
|
* **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 |