


Based on slides by Mojtaba Shahi Senobari --- Amirehsan Davoodi and Scott Chacon


# 1. The Creation  This is how the beginning of everything happened. God created the universe and everything in it in six days. After God created the earth it was dark and empty, and nothing had been formed in it. But God's Spirit was there over the water.
# 1. The Creation  This is how the beginning of everything happened. God created the universe and everything in it in six days. After God created the earth it was dark and empty, and nothing had been formed in it. But God's Spirit was over the water. Added this.

IDENTITY
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
CREATING A REPOSITORY
$ mkdir Testing
$ cd Testing
$ git init
CLONING A REPOSITORY
$ git clone https://git.door43.org/jag3773/Testing.git # HTTPS$ git clone git@git.door43.org:jag3773/Testing.git # SSH
$ git add README.rst
$ git rm file.py
$ git commit -am 'First commit'
$ git log
$ git show
$ git diff$ git checkout -- file.py
$ git revert 1776f5
$ git reset --hard HEAD
$ git push origin branch_name $ git pull
# or
$ git pull --no-edit origin master$ git fetch origin
$ git merge origin master
$ git branch iss53
$ git checkout iss53
$ git branch -d iss53$ git branch
iss53
* master

jesse@jesse /tmp/Testing $ git branch
conflict
* master
jesse@jesse /tmp/Testing $ git checkout conflict
Switched to branch 'conflict'
Your branch is up-to-date with 'origin/conflict'.
jesse@jesse /tmp/Testing $ git merge master
Auto-merging 01.txt
CONFLICT (content): Merge conflict in 01.txt
Automatic merge failed; fix conflicts and then commit the result.
jesse@jesse /tmp/Testing $ git status -s
UU 01.txt
jesse@jesse /tmp/Testing $ git diff
diff --cc 01.txt
index 44d36fa,e620274..0000000
--- a/01.txt
+++ b/01.txt
@@@ -4,4 -4,4 +4,8 @@@
This is how the beginning of everything happened. God created the universe and everything in it in six days. After God created the earth it was dark and empty, and nothing had been formed in it. But God's Spirit was there over the water.
++<<<<<<< HEAD
+This will cause problems.
++=======
+ Supposedly harmless addition...
++>>>>>>> master
$ for x in `cat mylist`; do git clone $x; done$ git add .
$ git commit -a
$ git pushfor x in `ls repos`; do cd repos/$xgit checkout -b $x git push ~/master_repo $x done
$ git merge -s ours $branch_name$ git push