建设银行中国网站首页,wordpress模版丢失,外贸网站建设需要注意事项,网站建设所需物资1. 首先要在bitbucket上创建一个项目#xff0c;这个我没有权限创建#xff0c;是找的管理员创建的。 管理员创建之后#xff0c;这个项目给了我权限#xff0c;我就可以创建我的代码仓库了。
2. 点击这个Projects下的具体项目名字#xff0c;就会进入这样一个页面#…1. 首先要在bitbucket上创建一个项目这个我没有权限创建是找的管理员创建的。 管理员创建之后这个项目给了我权限我就可以创建我的代码仓库了。
2. 点击这个Projects下的具体项目名字就会进入这样一个页面 创建完就可以看到仓库链接了: https://XXX.git
3.在你的本地配置一下用户名和邮箱然后clone代码提交和push
Configure Git for the first timegit config --global user.name ZXX YXXgit config --global user.email yXX.zXXmail.comWorking with your repository
I just want to clone this repository
If you want to simply clone this empty repository then run this command in your terminal. git clone https://XXX.git cd XXXgit add --allgit commit -m Initial Commitgit remote add origin https://XXX.gitgit push -u origin HEAD:master
My code is already tracked by Git
4.创建新的分支并提交 git branch -agit checkout -b new-branchgit add .git commit -m new-branchgit push origin new-branch
5.把master分支合到你的新分支上来 git checkout master # 切换本地分支为mastergit pull # 拉取master分支git checkout new-branch # 切换到自己的new-branch分支git merge master # 合并master到自己的分支git push # 推送到远程分支
6.增加.ignore ls -a #看看项目地下有没有.ignore文件
.git doc other .vscodeecho .vscode/settings.json .gitignore #没有的话创建并加入settings.jsongit commit -m ignore #提交git push #推送