Git And Github Flashcards
When I want to work on a project and I need to update the master branch with any changes that my colleague must have done what is the command that I would use
Git pull origin master
What is the command to create a new branch
Git branch
What is the command to add changes for a commit
Git add .
What is the command for switching between branches
Git checkout
What is the command to know your working branch
Git branch
And where the asterisk * sign is that is your working branch
What is the command to make a commit
Git commit -m “message for commiting”
What is the command to push a commit to the remote repository
Git push origin
What is the command to check your work status to know if changes have been made
Git status
What is the command to merge your new branch with your master branch
On your master branch type git merge
What is git
This is an open source version control system at the heart of GitHub.
Git is responsible for everything Git-hub related that happens locally on our computer
How do you clone your repository on your local computer
Git clone https://@github.com//
How to create your git identify
Git config –global user.name
Git config –global user.email
How to delete a git branch
Git branch -d
How do you push a branch git
Git push -u origin
How to merge in git
Git merge