Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. 1. git init = initials a new Repository.
  2.  
  3. 2. git add . = Adds new changes to the new repository.
  4.  
  5. 4. git commit -m "descriptive sentence" = describes changes in the current commit.
  6.  
  7. 5. git remote add origin {origin} = connects the local git repository with the newly created on github.com
  8.  
  9. 6. git push origin master = uploads local git repository on master branch.
  10.  
  11. // if we want to create new branch.
  12.  
  13. 7. git checkout -b {branchName} = creates a new branch locally. (checkout = go into branch) (-b creates the branch)
  14.  
  15. 8. git push origin {branchName} = uploads changes to {branchName}
  16.  
  17. 9. Take a break :) You earnded it!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement