How do i push up code to github?
-
git man page: http://bit.ly/2nvGNWB
Generally you are working on your own master copy of the code on your local computer, but after making changes that you have confirmed to be tested ok, you are ready to push them up to your github repository.
$ git status On branch master Untracked files: (use "git add <file>..." to include in what will be committed) mathup nothing added to commit but untracked files present (use "git add" to track) $ git add . $ git commit -m "Created a math script in bash" [master b2894de] Created a math script in bash 1 file changed, 8 insertions(+) create mode 100755 watch/mathup $ git status On branch master nothing to commit, working directory clean
You can see a simple maths script, that has been committed, now you're ready to push it up to github.
$ git push origin master Counting objects: 6, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 472 bytes | 0 bytes/s, done. Total 4 (delta 1), reused 0 (delta 0) remote: Resolving deltas: 100% (1/1), completed with 1 local objects. To [email protected]:testacct808/mygitrepo.git 1f9cde2..b2894de master -> master
If you refresh the web page and look in the directory where you created the mathup file you will see it updated on your remote.
© Lightnetics 2024