8. git workflow
@atmb4u
1. You MODIFYfiles in your working directory.
2. You STAGEthe files, adding snapshots of them to
your staging area.
3. You do a COMMIT, which takes the files as they
are in the staging area and stores that snapshot
permanently to your git directory.
27. ●
tag a point in history as important
●
git tag -a v1.0
git tag
@atmb4u
28. ●
remove files from the staging area
●
git rm <file name>
●
git rm –cached <file name>
git rm
@atmb4u
29. ●
save changes in the current index and working directory
for later
●
git stash
●
git stash apply
●
git stash list
●
git stash drop
git stash
@atmb4u
30. ●
save changes in the current index and working
directory for later
●
git reset HEAD <file name>
●
git reset --soft
●
git reset HEAD --hard
git reset
@atmb4u
31. ●
copy a git repository so you can add to it
●
git clone <remote repo url>
git clone
@atmb4u