How to upload files to github using Git for Windows.
- Download Git for windows Google it
- Create a GitHub account on GitHub.com
- Once it is all setup and you have your GH account created create a repository.
- If you are using Processing like I will be choose it in your Git ignore. For example if you are using Unity you would search for Unity.
- For you license choose MIT. Then create!
Now it's time to open up processing and start working on commiting to Git!
-
Now that you have your sketch open save it somewhere.
-
Now for the tricky part. Commiting to Git!
-
Right click on your sketch folder and once you have downloaded and installed git for windows it should say, Git Bash here. Click and you'll get this
-
Now you have to set it up with git. Type
git init
in the git bash shell. 10. After you've done that type
git remote add origin "YOUR URL" (ctrl + v won't work, try ctrl + shift + v)
NOTE: You can remoate origin with the name you want eg: bitbucket which can be used for multiple instance! 11. then type
git pull origin master
and press enter. 12. Then type
git add
and press enter. 13. Now type
git commit -m "Message you want shown on your github"
- Now for a tricky part type
git push --set-upstream origin master
- and finally type
git push
and press enter
And now everything we did should be on github!
MORE Now whenever you wanna make a change to your sketch and upload it you have to do the following. Make the change. then open your git bash the same way we did at the start and type
git add
then
git commit -m "Update message you want"
and finally
git push
For Linux, you guys are already dope! Install GIT from terminal usign apt-get and same use the same code.