Git Flashcards
What is Git?
A fast and modern implementation of version control system
What does git provide?
A history of content changes
A collaborative changes to files
What does [git status] do?
It shows you the status of your files and directories and which stage they are in. Displayed in red. (Not staged, staging area, and committed)
What does [git add <file>] do?</file>
It adds your file to the staging area and changes it color to green. (Not staged, staging area, and committed)
What does [git commit -m “Add <file>”] do?</file>
This commits the file to git.
(Not staged, staging area, and committed)
What does [git log] do?
Shows the history of ur git actions.
What does [git commit -m “Edit file and file”]?
This commits the file and adds a description to git.
(Not staged, staging area, and committed)
What does [git push] do?
Lets you upload your work to the GitHub repository.
What does [git clone git@github.com:USER-NAME~]
Posts the GitHub repo to git in ur shell
How to delete a branch in git?
Checkout then use [ git branch -d (branch name) ]
How to checkout to a branch in git?
[ git checkout (branch name) ]
How to change the origin of your repository with git?
[ git remote -v set-url origin …]
Copy for example the ssh link there.