添加WebStorm 项目 到 Bitbucket

Add an existing local WebStorm/IntelliJ project to a new remote GIT repository on Bitbucket.

1) Create a GIT repository on Bitbucket
2) Open the project locally in WebStorm
3) From the menu in WebStorm select VCS > Import into Version Control > Create GIT Repository. This will put your project under source control locally. It's important to note that nothing has been checked in or committed at this point yet. GIT has just been established. The file names of files that will be placed under source control (tracked) will now appear maroon in color
4)

Before adding or committing anything add the .gitignore file at this time. add the following filters 

此处 在项目文件夹右键点击git bash  然后运行  git .gitignore命令

并添加以下要忽略提交的文件夹

/.idea 
/node_modules
5) > git add -A .
  Next move all the files into the GIT index. Think of this as the local staging area before being pushed to the remote repository. Once files have been moved to the index but are still uncommitted turn green in color.
6) > git commit -m "initial commit"
  Now commit the files to the GIT repository.
7) > git remote add origin https://<username>@bitbucket.org/<username>/<repository_name>.git
  Add the Bitbucket remote repository to the local GIT project.
8)

git push -u origin —all

执行此处 会提示填写bitbucket的密码

  Pushes all the committed files to the Bitbucket repository
9) git push -u origin —tags
  Pushes any tags to the Bitbucket repository
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值