如何使用eclipse将代码提交到GitHub Server中?
当我运行此命令时
git push -u origin master
Run Code Online (Sandbox Code Playgroud)
它显示以下错误
错误:访问https://github.com/something/something时,请求的URL返回错误:403
我不是专家,但我曾经做过一次
认为简单直接的方法是
1.将Git下载到您的系统
2.cd到您的日食cd / workspace / sampleproject
3,命令
git config --global user.name "Your Name Here"
git config --global user.email "your_email@youremail.com"
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/gitusername/reposname.git
git push -u origin master this line may throw error but no problem
Run Code Online (Sandbox Code Playgroud)
4.从eclipse-> Help-> eclpise市场->搜索'git'->安装'Egit-git team provider'
5.转到eclipse-> Windows-> Open Perspective-> Git存储库
6.从“添加现有本地存储库”左侧的Git存储库视图中,然后浏览到“ / workspace / sampleproject”
7.Now右键单击此添加的存储库位置,然后按Commit添加评论。
8.现在在此添加的存储库上单击右键单击“推”
By default Configured remote repository should be checked then press Next
From Source Ref and Destination Ref Select HEAD //you may change if u want
Select next give your github username and password then click on Finish.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
30624 次 |
| 最近记录: |