bitbucket

来源:互联网 发布:外国人对中国美女知乎 编辑:程序博客网 时间:2024/05/18 01:34

如果您尚未设置,请在您的设备上设置 Git

mkdir /path/to/your/projectcd /path/to/your/projectgit initgit remote add origin https://wukx@bitbucket.org/wukx/sdaf.git

创建你的第一个文件,提交,然后推送到仓库。

echo "wukx" >> contributors.txtgit add contributors.txtgit commit -m "Initial commit with contributors"git push -u origin master

干的漂亮,现在你已经完成所有安装步骤!开始编码吧或者创建一个团队并且邀请新人加入吧。

 我有一个已经存在的项目

你的计算机上已经有了一个 Git 仓库?让我们把它推送到 Bitbucket 吧。

cd /path/to/my/repogit remote add origin https://wukx@bitbucket.org/wukx/sdaf.gitgit push -u origin --all # pushes up the repo and its refs for the first timegit push origin --tags # pushes up any tags
0 0
原创粉丝点击