techfaqs / Tech-FAQs

Easy introductions to few important, simple, tech topics.
MIT License
8 stars 14 forks source link

why and how to use Git? #11

Closed chidsss closed 6 years ago

chidsss commented 6 years ago

why and how to use Git

animenon commented 6 years ago

@chidsss you may add examples of git commands. Thanks was looking into #1

chidsss commented 6 years ago

[ Contents of this comment were added to git_cheatsheet.md ]

animenon commented 6 years ago

@chidsss Please add it to the file and commit :)

chidsss commented 6 years ago

@animenon please im new to this can you tell me how to go about it. thanks

animenon commented 6 years ago

@chidsss sure, in short you have to:

  1. Fork it! (Maybe git clone <git/https_link_to_repo> in local)
  2. Create your feature branch: git checkout -b <my-new-branch>
  3. Commit your changes: git commit -m 'Added some feature' (before the commit git add <file_name_to_add_to_commit>)
  4. Push to the branch: git push origin <my-new-branch>
  5. Submit a pull request!

    Please go though the beginners section in CONTRIBUTING.md.

animenon commented 6 years ago

@chidsss I have added the commands into a file git_cheatsheet.md here: https://github.com/animenon/Tech-FAQs/tree/git/git Feel free to edit/format it and raise a Pull Request. All you have to do is click on file you wish to edit, then choose the edit option from image Change the file as necessary. Then commit changes (this will automatically create a branch and raise a PR for you).

chidsss commented 6 years ago

thank you...that was super helpful and PR RAISED