Work with Bitbucket
Begin to work with Bitbucket
Step of how to add local folder or file to remote Repositories ?
-
Create an empty Repository in Bitbucket
-
After create this empty repository, in the page of overview, we can see the page to demand add repository.
-
Go to the folder that you want to add to the repository, create the
.gitfolder to initializegitworkspace:git init -
Create
.gitignorefile to avoid upload inuse file :touch .gitignore -
Add files to git
git add * -
Verity all of file needed have added:
git status -
Need first commit before add remote repository, this step is very important :
git commit -m "Init commit" -
As step 3 says, add remote repository to current folder :
git remote add origin https://your_bitbucket_name@bitbucket.org/your_bitbucket_name/test.git -
Last step, push:
git push -u origin master