Create & Commit First Time Flashcards
How do you make a git repository?
git init
How do you copy a git repo?
git clone
What are the steps of creating commiting a git
Git init
Git add
Git commit -m””
Then git commit -am””
How do you create a branch?
Git branch
How do you change between branches?
Git checkout
What are you doing when you branch?
When you branch you’re creating a new
How to add a commit initially?
git add then git commit
How to short cut an add, commit, and message?
git commit -am “”
How do you make a branch?
git branch
How do you see all your branches?
git branch
How to switch to a branch?
git checkout
Shortcut to make branch and put yourself into it if it’s not already made?
git checkout -b
How to merge and old file and a new file?
git merge /
What does this mean: echo “Earth’s Moon”»_space; locations.txt
You’re setting content (Earth’s Moons) into a new file named locations.txt
How do you push to the server. (Remember, you need to clone from a serve for you want to push to a server..)
git push origin master (So when we copied the repo, it was from a server. So it’s original state is on the server. )