嗨伙计我是git的新手,但我们正试图在办公室使用它跟踪大型网络项目的变化.
我们在共享网络驱动器上设置了大型网站的网站文件,这是我当前的流程和我面临的问题!
我在Windows 10上并使用git命令行界面.
我在共享驱动器上cd到这个网站目录并执行以下操作:
$ cd /x/Clients/ClientA/Website/
$ git init
$ git status
$ git add --all
$ git commit -m "Initial Commit"
Run Code Online (Sandbox Code Playgroud)
然后我cd到我的桌面并克隆本地版本:
$ cd /c/Users/Account/Desktop/
$ git clone /x/Clients/ClientA/Website/
Run Code Online (Sandbox Code Playgroud)
这完全克隆,我现在使用我的桌面/网站/文件夹中的Atom更改文件并保存.
然后我提交这些更改并尝试将它们推回到我的共享驱动器:
$ 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: index.html
no changes added to commit (use …Run Code Online (Sandbox Code Playgroud)