Git - https://git-scm.com/
Git Cheat Sheet - https://training.github.com/downloads/github-git-cheat-sheet.pdf
Create an empty Git repository or reinitialize an existing one
git init
diff file1.py file2.py Showing the difference in two files
< removed
> added
1c1,2 line from 1st file, changed, lines from 2nd file
diff -u file1.py file2.py
wdiff difference in words
diff -u file_original.py file_fixed.py > file.diff
patch file1.py < patchfile.diff
git log --graph --oneline
git status
git add file_name
git commit
git commit -m "message"
git branch
git checkout -B branch_name
git pull
git blame file_name
GitHub - https://github.com/
Go to the repository posted
On the upper right corner, click the [Fork] button
Change any parameters you want to change, click [Confirm]
Open powershell on your Windows computer or terminal on your Mac.
Change to your desire directory
Execute git clone repository_path
You may be asked to log in
Open powershell on your Windows computer or terminal on your Mac.
Change to your desire repository directory
To add all changes to the Git staging area, execute git add .
To check all changes added, execute git status
To commit, execute git commit -m "a brief description message"
To upload commit to remote repository, execute git push
You may be asked to log in
Go to your forked repository
Click the "Fetch upstream" dropdown menu, then click "Fetch and merge"
Open powershell on your Windows computer or terminal on your Mac.
Change to your desire repository directory
execute git pull