最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】把已有的PyCharm项目代码加到已有的OSChina的git仓库中

Git crifan 2479浏览 0评论

然后要去用git clone:

http://git.oschina.net/runningfast/RunningFast-Server

结果出错:

【已解决】用git下载代码提示:Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo

不过结果导致:

后续的对该文件夹的操作,都要root权限,会弹出输入密码的对话框:

所以删除掉:

,重新创建:

➜  sourcecode git clone http://git.oschina.net/runningfast/RunningFast-Server
Cloning into ‘RunningFast-Server’…
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 4 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (4/4), done.
Checking connectivity… done.

然后在命令行中add:

➜  RunningFast-Server git:(master) ✗ git status
On branch master
Your branch is up-to-date with ‘origin/master’.
Changes not staged for commit:
  (use "git add <file>…" to update what will be committed)
  (use "git checkout — <file>…" to discard changes in working directory)
    modified:   .gitignore
    modified:   README.md
Untracked files:
  (use "git add <file>…" to include in what will be committed)
    api_manual.md
    config.py
    db_create.py
    instance/
    redis.conf
    requirements.txt
    run.py
    runningfast/
    supervisor.conf
no changes added to commit (use "git add" and/or "git commit -a")
➜  RunningFast-Server git:(master) ✗ git add *
The following paths are ignored by one of your .gitignore files:
logs
Use -f if you really want to add them.
➜  RunningFast-Server git:(master) ✗ git status
On branch master
Your branch is up-to-date with ‘origin/master’.
Changes to be committed:
  (use "git reset HEAD <file>…" to unstage)
    modified:   README.md
    new file:   api_manual.md
    new file:   config.py
    new file:   db_create.py
    new file:   instance/config.py
    new file:   redis.conf
    new file:   requirements.txt
    new file:   run.py
    new file:   runningfast/__init__.py
    new file:   runningfast/models.py
    new file:   runningfast/views.py
    new file:   supervisor.conf
Changes not staged for commit:
  (use "git add <file>…" to update what will be committed)
  (use "git checkout — <file>…" to discard changes in working directory)
    modified:   .gitignore

然后再去新建PyCharm项目,在PyCharm中提交,结果出错:

【已解决】PyCharm中git提交出错:PyCharm author  is not ‘Name <email>’ and matches no existing author

转载请注明:在路上 » 【记录】把已有的PyCharm项目代码加到已有的OSChina的git仓库中

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.185 seconds, using 22.18MB memory