Git Commands
Upload local project on GitHub
1) Git Bash in the directory of you project.
2) Type 
git init to initialize git folder3) Type 
git add . to add all file for commit4) Now make commit by typing 
git commit -m "initial commit" here "initial commit" can be any message you want to pass.5) Now go to Github and create new repository.
6) After creating new repository switch to Git Bash again & type 
git remote add origin https://github.com/arsalanhub/Test.git here after origin you can give your repository URL.7) Finally type 
git push -u origin master  
8) Now refresh your repository & you will see the changes
Update your Existing Repository
Setting It Up (only do this the initial time)
- Find & copy Central Repo URL
- git remote add upstream https://github.com/NEONScience/DI-NEON-participants.gitafter upstream type in your repository URL.
After Initial Set Up
Update your Local Repo & Push Changes- git pull upstream master- pull down any changes and sync the local repo with the central repo
- Now type git add .
- After this git commit -m "initial commit"in place of "initial commit" you can give your own message.
- Finally git push origin master
- Refresh the repository & you will see the changes
 
 
No comments:
If you have any doubt or suggestion let me know in comment section.