티스토리 뷰

etc

Bitbucket - git command

shannon. 2013. 11. 10. 10:15
반응형

Clone your new repo

Set up Git on your machine if you haven't already.

mkdir /path/to/your/project
cd /path/to/your/project
git init
git remote add origin ssh://git@bitbucket.org/suminlim/backupme2day.git

Visit Bitbucket 101 for more help getting set up.



Make changes and push

Every project needs a README file. Your README appears on the project Overview page and introduces your project.

echo "# This is my README" >> README.md
git add README.md
git commit -m "First commit. Adding a README."
git push -u origin master




Push up an existing repository

You already have a Git repository on your computer. Let's push it up to Bitbucket.

cd /path/to/my/repo
git remote add origin ssh://git@bitbucket.org/suminlim/backupme2day.git
git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags

Do you want to grab a repo from another site? Try our importer!


반응형

'etc' 카테고리의 다른 글

test  (0) 2013.11.10
test  (0) 2013.11.10
Javascript tip - Module pattern  (0) 2013.11.10
통계학 vs 데이터 사이언스  (0) 2013.11.10
이민  (0) 2013.11.10
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함