Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. git init = initials a new Repository.
- 2. git add . = Adds new changes to the new repository.
- 4. git commit -m "descriptive sentence" = describes changes in the current commit.
- 5. git remote add origin {origin} = connects the local git repository with the newly created on github.com
- 6. git push origin master = uploads local git repository on master branch.
- // if we want to create new branch.
- 7. git checkout -b {branchName} = creates a new branch locally. (checkout = go into branch) (-b creates the branch)
- 8. git push origin {branchName} = uploads changes to {branchName}
- 9. Take a break :) You earnded it!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement