******** everyday do ******************
1)
$ git commit -a -m "test1"
2)
$ git push origin master
*********************************************************
================== create a new git and upload to github ======================
$ cd //78boe99prod/ufd
$ cd D:/boe/ufd
network drive does not work with git
// add .git folder to root folder
$ git init
// add all file to git
$ git add .
// first commit
$ git commit -m "1.0"
// github.com create new repo and copy the URL link
// https://github.com/hoogw/ufd.git
//
$ git remote add origin https://github.com/hoogw/ufd.git
//Push the changes in your local repository to GitHub.
$ git push origin master
// login window pop up, use hoogw 4a41
https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
==========================================================================
................................. every time commit a change and push to github ..........................
// -a means check all change, -m means message for this commit
$ git commit -a -m "test1"
...............................................................................................................................................
//-A, --all add changes from all tracked and untracked files
$ git add -A
$ git commit -m "login"
==========================================================================
................................. every time commit a change and push to github ..........................
// -a means check all change, -m means message for this commit
$ git commit -a -m "test1"
// push to github.com, no login required, since it remember the password.
$ git push origin master
//-A, --all add changes from all tracked and untracked files
$ git add -A
$ git commit -m "login"
No comments:
Post a Comment