(TBD)
Step.1) Setup configuration as needed.
Example)
$ git config --global color.ui true $ git config --global user.name "<User Name>" $ git config --global user.email "<Email address>" $ git config --global core.editor <Editor> $ git config --global alias.mylog "log --pretty=format:'%h %s [%an]' --graph"
Step.2) Setup .ignore as needed.
Example)
logs/*.log
$ git clone <Remote Repository>
$ git checkout -b <Branch Name>
$ git add .
You can reset the updated files.
$ git reset HEAD
$ git commit -m "<commit message>"
If you are using GitHub, you can close the issue with the following commit message.
$ git commit -m "Close #<issue no>"
$ git checkout master $ git merge <Branch Name>
$ git branch -d <Branch Name>
$ git push
Refer HowToUse/Git Daemon/1.7
# mkdir <Local Repository> # cd <Local Repository> # git init # git remote add origin <User Name>@<Host name>:<Repository Path>
(Example)
# git remote add origin syatsuzuka@192.168.56.101:/home/syatsuzuka/repo/test.git
# touch readme.txt # git add readme.txt # git commit -m 'Initial commit' # git push -u origin master
# mkdir <Local Repository> # cd <Locak Repository> # git init # git remote add origin https://<User Name>@github.com/<User Name>/<Repository Name>.git
(Example)
# git remote add origin https://github.com/syatsuzuka/test.git
# touch readme.txt # git add readme.txt # git commit -m 'Initial commit' # git push -u origin master
# mkdir <Local Repository> # cd <Locak Repository> # git init # git remote add origin https://<User Name>@bitbucket.org/<User Name>/<Repository Name>.git
(Example)
# git remote add origin https://syatsuzuka@bitbucket.org/syatsuzuka/test.git
# touch readme.txt # git add readme.txt # git commit -m 'Initial commit' # git push -u origin master
# git clone <Repository Path>
(Example)
# git clone https://syatsuzuka@bitbucket.org/syatsuzuka/test.git
# git add <Modified Files> # git commit -m '<Commit Log>' # git tag -a <version> -m '<description>' # git pull origin # git push origin
# git submodule <repository path> <submodule directory>
Then you can include submodules to your project without maintaining version control for its submodule code.
S.Yatsuzuka