Once your new repository is created, you can follow the instructions to set up your git from scratch.
Set up your git:
cd /path/to/your/projectgit initgit remote add origin https://allesgut@bitbucket.org/allesgut/racenews.git
Create your first file, commit, and push:
echo "Alex Xu" >> contributors.txtgit add contributors.txtgit commit -m 'Initial commit with contributors'git push -u origin master
Here is the file list in my project:
git add srcgit add outputgit commit -agit push
When you see the output "b225aae..529962f master -> master", you can check that all your files should have been put to the repository in Bitbucket.
Here is the file list in my project:
FOSs-MacBook:WebSpider fos$ find .
.
./contributors.txt
./output
./src
./src/sources
./src/sources/Chuangxinpai.py
./src/sources/Cnetnews.py
./src/sources/Forbeschina.py
./src/sources/FTchinese.py
./src/sources/Hbrchina.py
./src/sources/Investorchina.py
./src/sources/Reuterscn.py
./src/sources/Wallstreetcn.py
./src/sources/Yicai.py
./src/Spider.py
./src/tst
./src/tst/BS4Demo.py
./src/tst/Test.py
./src/WebUtil.py
Now I need to put the src files into the repository:git add srcgit add outputgit commit -agit push
When you see the output "b225aae..529962f master -> master", you can check that all your files should have been put to the repository in Bitbucket.
No comments:
Post a Comment