cs136l module 5.

git config ....
git status
git rm --cached <filename>
git log
git push
git commit -m "no"
git diff ( changes in file )
If file(s) have been modified but not staged, i.e., you haven't used git add to stage any changes since the last commit, git diff will show the differences between your current working directory and what was last committed.
If file(s) have been modified and staged, i.e., you used git add to stage changes, git diff will show you changes that exist between when the file(s) were staged and what is currently in the working directory. In other words, when file(s) have been staged, git diff compares the file(s) that are staged to what are in the current working directory instead of comparing file(s) that have been committed and the current working directory.
git diff -staged
to see difference between staged and committed.
git diff --color-words hello.c
$rm utility.c $git add utility.c $git commit -m "Deleted utility.c"
untracking and rming files.
= $git rm utility.c




creates a branch
lists all the branches.
* is the current active branch





Once a bare repository has been created, any user with access to that location can now clone this repository on their own machine, i.e, create a local repository that is a copy of the remote repository:






$git branch -d editor_prototype
delete branch after using it.












default mode, --mixed.



crl-shift-g for source-code option to show up in vscode.

Last updated