Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Svn-to-Git
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王进波
Svn-to-Git
Commits
4edba75a
Commit
4edba75a
authored
Aug 24, 2018
by
王进波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
0824839b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
README.md
README.md
+3
-0
CommenCmd.md
doc/FromSVNToGit/CommenCmd.md
+19
-0
No files found.
README.md
View file @
4edba75a
...
...
@@ -6,6 +6,9 @@
-
[
Git安装配置和操作基本操作演示
](
doc/Git安装配置和操作基本操作演示.md
)
-
[
签出正式开发代码,修改,提交
](
doc/签出正式开发代码,修改,提交.md
)
-
[
Git同步密码输入错误后设置重新验证
](
doc/Git同步密码输入错误后设置重新验证.md
)
-
[
Git-Windows配置支持Git多账户
](
https://civgit.vicp.net:8443/wangjinbo/Svn-to-Git/blob/master/doc/FromSVNToGit/ConfigAfterInstall.md#%E5%AF%86%E7%A0%81%E7%AE%A1%E7%90%86
)
-
[
Git提交日志查看优化
](
https://civgit.vicp.net:8443/wangjinbo/Svn-to-Git/blob/master/doc/FromSVNToGit/ConfigAfterInstall.md#%E6%A0%BC%E5%BC%8F%E5%8C%96%E6%97%A5%E5%BF%97%E8%BE%93%E5%87%BA
)
-
优雅地从Git仓库中移除已追踪的文件
## 代码调整和部署说明
...
...
doc/FromSVNToGit/CommenCmd.md
View file @
4edba75a
...
...
@@ -9,15 +9,34 @@
## Git 常用操作命令
-
`git init`
-
`git clone`
-
`git add`
-
`git commit`
-
`git push`
-
`git fetch`
-
`git pull`
-
`git config`
-
` git remote`
-
`git status`
-
`git branch`
-
`git checkout`
## 优雅删除要忽略的文件
`git rm [-r] --cached <path>`
> 将文件或目录从缓存去中删除,执行成功后,commit 并 push到远程服务器上,这样当其他人 pull到本地时,本地已经存在的 <path> 路径的文件或目录不会被删除掉,但是会提示为untracked ,未添加到索引区,此时再将文件添加到` .gitignore` ,就可以实现优雅地忽略已存在的文件。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment