We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 06/14/08


Tagged

git github


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

AzizLight


First steps with Git on GitHub


Published in: Bash 


  1. # Global setup:
  2.  
  3. git config --global user.email <user@domain.tld>
  4.  
  5. # Next steps:
  6.  
  7. mkdir -p <dirname>
  8. cd !$
  9. git init
  10. touch README
  11. git add README
  12. git commit -m 'first commit'
  13. git remote add origin git@github.com:<username>/<reponame>.git
  14. git push origin master
  15.  
  16. # Existing Git Repo?
  17.  
  18. cd <existing_git_repo>
  19. git remote add origin git@github.com:<username>/<reponame>.git
  20. git push origin master

Report this snippet 

You need to login to post a comment.