giiiiit Flashcards
Write git command to find the version
git –version
What is Git? Why use git?
A version control system.
Track changes, see who make changes and help you collab with your teammates
How do you know let know git who you are?
git config –global user.email “attract6figures@chase.com”
How to initialize git
git init
how to check the status of git
git status
What is (M)
M index.html
A hello.txt
?? bibgo.txt
D hello.feature
Means modified
Files added to stage
?? untracked files
D deleted files
How to get the git log?
to find the history of commits, you do git log
how to ask for help using git?
git help –all
how to get help for a specific help?
git commit -help
Why create a new branch?
we do not want to disturb or possibly wreck the main project
pull is a combination of:
fetch and merge
How do you get all the change history of the origin for this branch:
git fetch origin
How to Update the current branch from its origin using a single command:
git pull origin
Remove the hello-you branch from the local repository
git branch -d hello-you
Merge the hello-you branch with the current branch:
git merge hello-you