Documente Academic
Documente Profesional
Documente Cultură
$ cd git-workshop
$ git status
# 4. Stage the new file
$ git status
# then committing.
# 6. commit
--graph
--pretty=oneline
--abbrev-commit
--decorate"
$ git l
$ git status
$ git status
$ git diff
# diff == working <-> staged
$ git status
$ git status
$ git status
$ rm new-b.txt
$ rm new.txt
$ git status
$ git rm new.txt
$ git status
# 5. Unstage the removal (HEAD is important,
try without it)
$ git status
$ git status
$ git branch
$ git branch -v
# 3. Make a change
$ git l
$ cat new-b.txt
$ git l
$ git branch -v
$ git status
$ git diff
# 5. Examine each version of new-b.txt
$ git diff
$ git commit
$ git l
$ git branch -d changing-b
$ git l
# Save/quit
# 7. Note history
$ git l
$ git reflog
# Shows what "HEAD" was X commits ago
# merge commits
$ git l
# No (unneeded) forks
Both people:
$ cd git-workshop
$ git init
$ touch README
$ cd git-workshop
$ cat README
# Change README
$ echo "from user2" >> README
$ git push
$ git push
$ cat README
$ git push