Create local repository from remote with default directory | git clone https://github.com/mlcollard/OOPS24-Rainfall-010.git |
Create local repository from remote with named directory | git clone https://github.com/mlcollard/OOPS24-Rainfall-010.git Rainfall |
Update local repository from remote repository (e.g., GitHub) | git pull |
Edit files locally, e.g., add a header comment to the file rainfall.cpp | |
Commit current changes to the local repository | git commit -am "Add a header comment" |
Update remote repository from local repository | git push |
View commit log | git log |
Update local repository from remote repository (e.g., GitHub) | git pull |
Edit files locally, e.g., add a header comment to the file rainfall.cpp | |
Stage commits in the local repository | git add rainfall.cpp |
Commit staged changes to the local repository | git commit -m "Add a header comment" |
View current staged and modified files | git status |
View diff of modified files | git diff |
View diff of staged files | git diff --cached |
Update remote repository from local repository | git push |
List tags | git tag |
Create lightweight tag | git tag v1a |
Push tag to server | git push origin v1a |
Checkout a tag | git checkout v1a |
Delete local tag | git tag -d v1a |
Delete remote tag | git push origin --delete v1a |