Git Hub 101
Creating a new repo usin Github and the desktop app
1. Create a repo on github website by creating new project
2. Then right click on green button on right to open in desktop (github
desktopapp)
3. Select a local path (where you want to keep in you local computer)
4. Click clone and the app is now synced up with the repo on github and any
changes you make will show up in the desktop app.
5. Make changes, commit to master and push on the desktop app
6. I can create branch from github too
Creating a new repo using Github and cloning it to local
1. Open http://github.com
2. Go to the top right side of the screen and click on (+) sign to create a
new repository.
3. Click on the new repository and then type the name of the repository
and other details and press on Create repository.
4. Copy the address of your repository
5. Search Gitbash and open
6. Run cd ~
7. Run cd Desktop/
8. Run git clone (place address of your repositry).
9. Run cd (name of your repository).
10. Past your project which you want to upload in the testing folder on a
desktop
11. Run (git status)
12. Run (git add .)
13. Run(git commit -m “write some hint ”)
14. Run (git push origin master).
15. You successfully add your project to GitHub
Creating a new repo using Github and then localising it on the command line:
1. cd <path-to-project-folder>
2. once in the folder, run git init
3. Then run:
git add .
or
git add ____________
4. git commit -m "short descriptive message"