Daniel Lauzon
Why one uses git
Basics
Workflow and Collaboration
Hands-on (SourceTree)
Report-2016-06-22-revB-Dan-final-V39
time
commit: Record all files at a point in time
$ git init my-project
Initialized empty repository in my-project/.git/
$ git clone ssh://john@example.com /path/to/my-project.git
$ cd my-project
# Start working on the project
$ git add A.txt.md $ git status On branch master Initial commit Changes to be committed: (use "git rm --cached <file>..." to unstage) new file: A.txt.md
$
$ git commit -m "My first commit"
[master (root-commit) 605fd93] Adding A file
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 A.txt.md
$
$ git pull origin
$ git push origin master
git checkout -b my-feature master
git status
git add <some-file>
git commit
git push -u origin my-feature
$ git checkout master
$ git pull
$ git pull origin my-feature
# or git merge my-feature
$ git push