kyopages/docs/about/git.md

43 lines
799 B
Markdown
Raw Normal View History

2017-05-26 16:12:36 +02:00
# Command line instructions
## Git global setup
2017-06-24 14:51:48 +02:00
2017-05-26 16:12:36 +02:00
```shell
git config --global user.name "kyodev"
git config --global user.email "kyodev@monMail.fr"
2017-05-26 16:32:21 +02:00
git config --global core.editor nano
2017-05-26 16:12:36 +02:00
git config --global color.ui true
git config --global format.pretty oneline
```
## Existing folder
2017-06-24 14:51:48 +02:00
2017-05-26 16:12:36 +02:00
```shell
cd kyopages
git init
git remote add origin git@framagit.org:kyodev/kyopages.git
git add .
2017-06-24 14:51:48 +02:00
git commit -m "Initial commit"
2017-05-26 16:12:36 +02:00
git push -u origin master
```
2017-06-03 20:32:33 +02:00
## Existing Git repository
2017-06-24 14:51:48 +02:00
2017-06-03 20:32:33 +02:00
```shell
cd kyopages
git remote add origin git@framagit.org:kyodev/kyopages.git
git push -u origin --all
git push -u origin --tags
```
## Create a new repository
2017-06-24 14:51:48 +02:00
2017-06-03 20:32:33 +02:00
```shell
git clone git@framagit.org:kyodev/kyopages.git
cd kyopages
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
```