본문 바로가기

etc

Bitbucket - git command

반응형

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