코린이의 기록

[GIT] git INIT Command line instructions 본문

ICT&Tools/Git

[GIT] git INIT Command line instructions

코린이예요 2019. 12. 26. 18:46
반응형

Command line instructions

Git global setup

 

git config --global user.name "yoonsoyeon"
git config --global user.email "sy.yoon@alticast.com"

Create a new repository

git clone http://10.20.30.40:8000/ota_system/admin-ui.git
cd admin-ui
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder

cd existing_folder
git init
git remote add origin git@10.20.30.40:ota_system/admin-ui.git
git add .
git commit -m "Initial commit"
git push -u origin master

Existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin git@10.20.30.40:ota_system/admin-ui.git
git push -u origin --all
git push -u origin --tags
반응형
Comments