can i upload a project to github and not for people to collaborate on code example
Example 1: how to give access in the git hub
Ask for the username of the person you're inviting as a collaborator.
Under your repository name, click Settings.
In the left sidebar, click Collaborators.
Under "Collaborators", start typing the collaborator's username.
Select the collaborator's username from the drop-down menu.
Click Add collaborator.
Example 2: git collab
[Assuming you you have cloned the repo to your desktop, not a fork]
Get into a branch to work on your stuff
-Git checkout -b < new branch> -or- git checkout <ur branch>
1. git add . -or- git add <file/folder name>
2. git commit –m “...” (these now saved on ur branch)
3. git checkout master (change over to the master branch)
4. git pull origin master (branch up to date w master)
5. git checkout (get to the branch u were working on)
6. git merge master
( if anything different, not your new code but, other stuff
… you will have a merge conflict)
--- > Go into your code and compare your code vs. master
delete as needed ... both are color coded to compare
... save one, delete the other ... your call
7. git add . (Add the final changes)
8. git commit –m “…”
9. git push origin master
10. Go into the GitHub.com repo and make a pull request