Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ pwd
/c/Users/Administrator/Desktop
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ ll
total 29331
-rw-r--r-- 1 Administrator 197121 162 十一月 14 10:05 '~$填空123篇.rtf'
drwxr-xr-x 1 Administrator 197121 0 十一月 20 17:48 201912/
-rwxr-xr-x 1 Administrator 197121 863 十月 8 14:28 BurpUnlimited.jar.lnk*
-rw-r--r-- 1 Administrator 197121 282 十一月 6 09:05 desktop.ini
-rwxr-xr-x 1 Administrator 197121 1007 十一月 25 17:42 EditPlus.lnk*
-rwxr-xr-x 1 Administrator 197121 3305472 七月 31 2008 FeiQ.exe*
-rwxr-xr-x 1 Administrator 197121 11960320 十一月 25 17:40 'Git-2.24.0.2-64-bit(2).exe.qbl'*
-rwxr-xr-x 1 Administrator 197121 14696448 十一月 26 10:09 Git-2.24.0.2-64-bit.exe.qbl*
-rwxr-xr-x 1 Administrator 197121 2368 九月 16 09:32 QQ浏览器.lnk*
-rwxr-xr-x 1 Administrator 197121 1010 八月 12 11:51 QQ影像.lnk*
-rwxr-xr-x 1 Administrator 197121 1407 十月 25 17:21 'WPS 2019.lnk'*
-rwxr-xr-x 1 Administrator 197121 973 十一月 1 17:44 百度网盘.lnk*
-rwxr-xr-x 1 Administrator 197121 1239 十月 12 17:11 格式工厂.lnk*
-rwxr-xr-x 1 Administrator 197121 611 十一月 4 10:18 工作文档.lnk*
-rwxr-xr-x 1 Administrator 197121 1105 八月 8 13:38 酷狗音乐.lnk*
-rwxr-xr-x 1 Administrator 197121 1866 十一月 5 12:17 拼多多商家工作台.lnk*
-rw-r--r-- 1 Administrator 197121 200 十一月 20 16:59 日志.txt
-rwxr-xr-x 1 Administrator 197121 1727 十月 29 10:29 腾讯影视库.lnk*
-rwxr-xr-x 1 Administrator 197121 1283 八月 8 14:23 网易有道词典.lnk*
-rwxr-xr-x 1 Administrator 197121 912 九月 3 11:19 文件纪录.txt.lnk*
-rwxr-xr-x 1 Administrator 197121 1146 八月 13 11:23 有道云笔记.lnk*
-rwxr-xr-x 1 Administrator 197121 621 十一月 4 10:18 找秒杀团队.lnk*
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ pwd
/c/Users/Administrator/Desktop
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ ls
201912/
4Y4淘宝店铺装修专家.lnk*
BurpUnlimited.jar.lnk*
desktop.ini
EditPlus.lnk*
FeiQ.exe*
'Git-2.24.0.2-64-bit(2).exe.qbl'*
Git-2.24.0.2-64-bit.exe.qbl*
QQ浏览器.lnk*
QQ影像.lnk*
'WPS 2019.lnk'*
百度网盘.lnk*
格式工厂.lnk*
工作文档.lnk*
酷狗音乐.lnk*
拼多多商家工作台.lnk*
日志.txt
腾讯影视库.lnk*
网易有道词典.lnk*
文件纪录.txt.lnk*
有道云笔记.lnk*
找秒杀团队.lnk*
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ mddir myRepos
bash: mddir: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ mkdit myRepos
bash: mkdit: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ mkdir myRepos
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ cd myRepos/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos
$ git init
Initialized empty Git repository in C:/Users/Administrator/Desktop/myRepos/.git/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls -al
total 32
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:29 ../
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 .git/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cd .git/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ls
config description HEAD hooks/ info/ objects/ refs/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ll
total 7
-rw-r--r-- 1 Administrator 197121 130 十一月 26 10:31 config
-rw-r--r-- 1 Administrator 197121 73 十一月 26 10:31 description
-rw-r--r-- 1 Administrator 197121 23 十一月 26 10:31 HEAD
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 hooks/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 info/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 objects/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 refs/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ls
config description HEAD hooks/ info/ objects/ refs/
l
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ls -al
total 11
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 ../
-rw-r--r-- 1 Administrator 197121 130 十一月 26 10:31 config
-rw-r--r-- 1 Administrator 197121 73 十一月 26 10:31 description
-rw-r--r-- 1 Administrator 197121 23 十一月 26 10:31 HEAD
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 hooks/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 info/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 objects/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 refs/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ll
total 7
-rw-r--r-- 1 Administrator 197121 130 十一月 26 10:31 config
-rw-r--r-- 1 Administrator 197121 73 十一月 26 10:31 description
-rw-r--r-- 1 Administrator 197121 23 十一月 26 10:31 HEAD
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 hooks/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 info/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 objects/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 refs/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ls
config description HEAD hooks/ info/ objects/ refs/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ ls -al
total 11
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 ../
-rw-r--r-- 1 Administrator 197121 130 十一月 26 10:31 config
-rw-r--r-- 1 Administrator 197121 73 十一月 26 10:31 description
-rw-r--r-- 1 Administrator 197121 23 十一月 26 10:31 HEAD
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 hooks/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 info/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 objects/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:31 refs/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ git config user.name wjw
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ git config user.email [email protected]
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ vim config
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ git config --global user.name wjw_glob
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ git config --global user.email [email protected]
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos/.git (GIT_DIR!)
$ cd
Administrator@XPWY-41-WJW MINGW64 ~
$ pwd
/c/Users/Administrator
Administrator@XPWY-41-WJW MINGW64 ~
$ ls
「开始」菜单@
AppData/
'Application Data'@
Contacts/
Cookies@
Desktop/
Documents/
Downloads/
geckodriver.log
Links/
'Local Settings'@
'My Documents'@
NetHood@
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2
NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TM.blf
NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000002.regtrans-ms
ntuser.ini
ntuser.pol
PrintHood@
PycharmProjects/
Recent@
'Saved Games'/
Searches/
SendTo@
Templates@
UIDowner/
Videos/
Administrator@XPWY-41-WJW MINGW64 ~
$ ls -al
total 15230
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:40 ./
drwxr-xr-x 1 Administrator 197121 0 十二月 4 2013 ../
drwxr-xr-x 1 Administrator 197121 0 八月 8 13:39 .android/
-rw-r--r-- 1 Administrator 197121 57 十一月 26 10:40 .gitconfig
drwxr-xr-x 1 Administrator 197121 0 八月 8 14:37 .PyCharm2019.2/
-rw-r--r-- 1 Administrator 197121 899 十一月 26 10:37 .viminfo
lrwxrwxrwx 1 Administrator 197121 67 十二月 4 2013 「开始」菜单 -> '/c/Users/Administrator/AppData/Roaming/Microsoft/Windows/Start Menu'/
drwxr-xr-x 1 Administrator 197121 0 八月 8 11:57 AppData/
lrwxrwxrwx 1 Administrator 197121 38 十二月 4 2013 'Application Data' -> /c/Users/Administrator/AppData/Roaming/
drwxr-xr-x 1 Administrator 197121 0 十一月 6 09:05 Contacts/
lrwxrwxrwx 1 Administrator 197121 64 十二月 4 2013 Cookies -> /c/Users/Administrator/AppData/Roaming/Microsoft/Windows/Cookies/
drwxr-xr-x 1 Administrator 197121 0 十一月 26 10:29 Desktop/
drwxr-xr-x 1 Administrator 197121 0 十二月 4 2013 Documents/
drwxr-xr-x 1 Administrator 197121 0 十一月 6 09:05 Downloads/
-rw-r--r-- 1 Administrator 197121 2980 八月 8 15:43 geckodriver.log
drwxr-xr-x 1 Administrator 197121 0 十一月 6 09:05 Links/
lrwxrwxrwx 1 Administrator 197121 36 十二月 4 2013 'Local Settings' -> /c/Users/Administrator/AppData/Local/
lrwxrwxrwx 1 Administrator 197121 32 十二月 4 2013 'My Documents' -> /c/Users/Administrator/Documents/
lrwxrwxrwx 1 Administrator 197121 74 十二月 4 2013 NetHood -> '/c/Users/Administrator/AppData/Roaming/Microsoft/Windows/Network Shortcuts'/
-rw-r--r-- 1 Administrator 197121 13631488 十一月 26 10:41 NTUSER.DAT
-rw-r--r-- 1 Administrator 197121 262144 十一月 26 10:41 ntuser.dat.LOG1
-rw-r--r-- 1 Administrator 197121 0 十二月 4 2013 ntuser.dat.LOG2
-rw-r--r-- 1 Administrator 197121 65536 十二月 4 2013 NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TM.blf
-rw-r--r-- 1 Administrator 197121 524288 十二月 4 2013 NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000001.regtrans-ms
-rw-r--r-- 1 Administrator 197121 524288 十二月 4 2013 NTUSER.DAT{016888bd-6c6f-11de-8d1d-001e0bcde3ec}.TMContainer00000000000000000002.regtrans-ms
-rw-r--r-- 1 Administrator 197121 20 三月 28 2011 ntuser.ini
-r--r--r-- 1 Administrator 197121 1612 八月 22 14:25 ntuser.pol
lrwxrwxrwx 1 Administrator 197121 74 十二月 4 2013 PrintHood -> '/c/Users/Administrator/AppData/Roaming/Microsoft/Windows/Printer Shortcuts'/
drwxr-xr-x 1 Administrator 197121 0 八月 8 14:40 PycharmProjects/
lrwxrwxrwx 1 Administrator 197121 63 十二月 4 2013 Recent -> /c/Users/Administrator/AppData/Roaming/Microsoft/Windows/Recent/
drwxr-xr-x 1 Administrator 197121 0 十一月 6 09:05 'Saved Games'/
drwxr-xr-x 1 Administrator 197121 0 十一月 6 09:05 Searches/
lrwxrwxrwx 1 Administrator 197121 63 十二月 4 2013 SendTo -> /c/Users/Administrator/AppData/Roaming/Microsoft/Windows/SendTo/
lrwxrwxrwx 1 Administrator 197121 66 十二月 4 2013 Templates -> /c/Users/Administrator/AppData/Roaming/Microsoft/Windows/Templates/
drwxr-xr-x 1 Administrator 197121 0 十月 25 17:14 UIDowner/
drwxr-xr-x 1 Administrator 197121 0 十一月 6 09:05 Videos/
Administrator@XPWY-41-WJW MINGW64 ~
$ vim .gitconfig/
Administrator@XPWY-41-WJW MINGW64 ~
$ vim .gitconfig
Administrator@XPWY-41-WJW MINGW64 ~
$ cd Desktop/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ pwd
/c/Users/Administrator/Desktop
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ a
bash: a: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ git status
fatal: not a git repository (or any of the parent directories): .git
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ cd myRepos/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ pwd
/c/Users/Administrator/Desktop/myRepos
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaa
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
No commits yet
Untracked files:
(use "git add
test.txt
nothing added to commit but untracked files present (use "git add" to track)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git add test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ lf
bash: lf: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ crlf
bash: crlf: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ LF
bash: LF: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
No commits yet
Changes to be committed:
(use "git rm --cached
new file: test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "1 commit" test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
[master (root-commit) 1456952] 1 commit
1 file changed, 1 insertion(+)
create mode 100644 test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
nothing to commit, working tree clean
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
cat
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -"2 commit" test.txt
error: unknown switch `2'
usage: git commit [
-q, --quiet suppress summary after successful commit
-v, --verbose show diff in commit message template
Commit message options
-F, --file
--author
--date
-m, --message
commit message
-c, --reedit-message
reuse and edit message from specified commit
-C, --reuse-message
reuse message from specified commit
--fixup
--squash
--reset-author the commit is authored by me now (used with -C/-c/--amend)
-s, --signoff add Signed-off-by:
-t, --template
use specified template file
-e, --edit force edit of commit
--cleanup
--status include status in commit message template
-S, --gpg-sign[=
GPG sign commit
Commit contents options
-a, --all commit all changed files
-i, --include add specified files to index for commit
--interactive interactively add files
-p, --patch interactively add changes
-o, --only commit only specified files
-n, --no-verify bypass pre-commit and commit-msg hooks
--dry-run show what would be committed
--short show status concisely
--branch show branch information
--ahead-behind compute full ahead/behind values
--porcelain machine-readable output
--long show status in long format (default)
-z, --null terminate entries with NUL
--amend amend previous commit
--no-post-rewrite bypass post-rewrite hook
-u, --untracked-files[=
show untracked files, optional modes: all, normal, no. (Default: all)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "2 commit" test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
[master 33764f8] 2 commit
1 file changed, 2 insertions(+), 1 deletion(-)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
nothing to commit, working tree clean
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
nothing to commit, working tree clean
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test1.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test1.txt
cccccccccccccc
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Untracked files:
(use "git add
test1.txt
nothing added to commit but untracked files present (use "git add" to track)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git add test1.txt
warning: LF will be replaced by CRLF in test1.txt.
The file will have its original line endings in your working directory
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ touch test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
Untracked files:
(use "git add
test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git test2.txt
git: 'test2.txt' is not a git command. See 'git --help'.
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git add test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
new file: test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git sta
git: 'sta' is not a git command. See 'git --help'.
The most similar commands are
status
stage
stash
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git rm --cached test2.txt
rm 'test2.txt'
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
Untracked files:
(use "git add
test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git add test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
new file: test2.txt
git
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git rm --cached -test1.txt
error: unknown switch `t'
usage: git rm [
-n, --dry-run dry run
-q, --quiet do not list removed files
--cached only remove from the index
-f, --force override the up-to-date check
-r allow recursive removal
--ignore-unmatch exit with a zero status even if nothing matched
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git rm --cached test1.txt
rm 'test1.txt'
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test2.txt
Untracked files:
(use "git add
test1.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git test1.txt
git: 'test1.txt' is not a git command. See 'git --help'.
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test2.txt
Untracked files:
(use "git add
test1.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git add test1.txt
warning: LF will be replaced by CRLF in test1.txt.
The file will have its original line endings in your working directory
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
new file: test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls
test.txt test1.txt test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls -al
total 38
drwxr-xr-x 1 Administrator 197121 0 十一月 26 11:11 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 11:06 ../
drwxr-xr-x 1 Administrator 197121 0 十一月 26 11:18 .git/
-rw-r--r-- 1 Administrator 197121 31 十一月 26 11:04 test.txt
-rw-r--r-- 1 Administrator 197121 15 十一月 26 11:09 test1.txt
-rw-r--r-- 1 Administrator 197121 0 十一月 26 11:11 test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ rm test1.txt test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls -al
total 37
drwxr-xr-x 1 Administrator 197121 0 十一月 26 11:20 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 11:06 ../
drwxr-xr-x 1 Administrator 197121 0 十一月 26 11:18 .git/
-rw-r--r-- 1 Administrator 197121 31 十一月 26 11:04 test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "3 tijiao" test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
[master 7f05494] 3 tijiao
1 file changed, 2 insertions(+)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "4 tijiao" test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
[master f49bba2] 4 tijiao
1 file changed, 1 insertion(+)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "5 tijiao" test.txt
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in test.txt.
The file will have its original line endings in your working directory
[master 667edc5] 5 tijiao
1 file changed, 1 insertion(+), 1 deletion(-)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$
git status
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$git status
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
new file: test1.txt
new file: test2.txt
Changes not staged for commit:
(use "git add/rm
(use "git restore
deleted: test1.txt
deleted: test2.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git statusgit status
git: 'statusgit' is not a git command. See 'git --help'.
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git log
commit 667edc551c44afa0efbb7e93be12ce9c331a8830 (HEAD -> master)
Author: wjw
Date: Tue Nov 26 11:27:05 2019 +0800
5 tijiao
commit f49bba27df836fef0d86f37d8b1a8f8f935946d4
Author: wjw
Date: Tue Nov 26 11:25:33 2019 +0800
4 tijiao
commit 7f054945a4649eedfdec3da66e6f32cdb6c73c75
Author: wjw
Date: Tue Nov 26 11:23:03 2019 +0800
3 tijiao
commit 33764f8b2e7d518e862198db735eb47ee4a29471
Author: wjw
Date: Tue Nov 26 11:06:52 2019 +0800
2 commit
commit 14569528d3a85bbb8eecde23149187efc423cfa1
Author: wjw
Date: Tue Nov 26 11:00:28 2019 +0800
1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git log --pretty=oneline
667edc551c44afa0efbb7e93be12ce9c331a8830 (HEAD -> master) 5 tijiao
f49bba27df836fef0d86f37d8b1a8f8f935946d4 4 tijiao
7f054945a4649eedfdec3da66e6f32cdb6c73c75 3 tijiao
33764f8b2e7d518e862198db735eb47ee4a29471 2 commit
14569528d3a85bbb8eecde23149187efc423cfa1 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git log --oneline
667edc5 (HEAD -> master) 5 tijiao
f49bba2 4 tijiao
7f05494 3 tijiao
33764f8 2 commit
1456952 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reflog
667edc5 (HEAD -> master) HEAD@{0}: commit: 5 tijiao
f49bba2 HEAD@{1}: commit: 4 tijiao
7f05494 HEAD@{2}: commit: 3 tijiao
33764f8 HEAD@{3}: commit: 2 commit
1456952 HEAD@{4}: commit (initial): 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard HEAD^^
HEAD is now at 7f05494 3 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reflog
7f05494 (HEAD -> master) HEAD@{0}: reset: moving to HEAD^^
667edc5 HEAD@{1}: commit: 5 tijiao
f49bba2 HEAD@{2}: commit: 4 tijiao
7f05494 (HEAD -> master) HEAD@{3}: commit: 3 tijiao
33764f8 HEAD@{4}: commit: 2 commit
1456952 HEAD@{5}: commit (initial): 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reflog
7f05494 (HEAD -> master) HEAD@{0}: reset: moving to HEAD^^
667edc5 HEAD@{1}: commit: 5 tijiao
f49bba2 HEAD@{2}: commit: 4 tijiao
7f05494 (HEAD -> master) HEAD@{3}: commit: 3 tijiao
33764f8 HEAD@{4}: commit: 2 commit
1456952 HEAD@{5}: commit (initial): 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard HEAD^
HEAD is now at 33764f8 2 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat text.txt
cat: text.txt: No such file or directory
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reflog
33764f8 (HEAD -> master) HEAD@{0}: reset: moving to HEAD^
7f05494 HEAD@{1}: reset: moving to HEAD^^
667edc5 HEAD@{2}: commit: 5 tijiao
f49bba2 HEAD@{3}: commit: 4 tijiao
7f05494 HEAD@{4}: commit: 3 tijiao
33764f8 (HEAD -> master) HEAD@{5}: commit: 2 commit
1456952 HEAD@{6}: commit (initial): 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard 667edc5
HEAD is now at 667edc5 5 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reflog
667edc5 (HEAD -> master) HEAD@{0}: reset: moving to 667edc5
33764f8 HEAD@{1}: reset: moving to HEAD^
7f05494 HEAD@{2}: reset: moving to HEAD^^
667edc5 (HEAD -> master) HEAD@{3}: commit: 5 tijiao
f49bba2 HEAD@{4}: commit: 4 tijiao
7f05494 HEAD@{5}: commit: 3 tijiao
33764f8 HEAD@{6}: commit: 2 commit
1456952 HEAD@{7}: commit (initial): 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard 7f05494
HEAD is now at 7f05494 3 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard f49bba2
HEAD is now at f49bba2 4 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
nothing to commit, working tree clean
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ll
total 1
-rw-r--r-- 1 Administrator 197121 70 十一月 26 13:45 test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls
test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls -al
total 37
drwxr-xr-x 1 Administrator 197121 0 十一月 26 13:45 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 13:33 ../
drwxr-xr-x 1 Administrator 197121 0 十一月 26 13:47 .git/
-rw-r--r-- 1 Administrator 197121 70 十一月 26 13:45 test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ rm -rf test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ll
total 0
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reset --hard 667edc5
HEAD is now at 667edc5 5 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls
test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git branch dev
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git branch -v
dev 667edc5 5 tijiao
* master 667edc5 5 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git checkout dev
Switched to branch 'dev'
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ git branch -v
* dev 667edc5 5 tijiao
master 667edc5 5 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
dev dev dev dev dev dev
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ git checkout master
Switched to branch 'master'
M test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
dev dev dev dev dev dev
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git checkout dev
Switched to branch 'dev'
M test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ git status
On branch dev
Changes not staged for commit:
(use "git add
(use "git restore
modified: test.txt
no changes added to commit (use "git add" and/or "git commit -a")
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ git commit -m "this dev" test.txt
[dev 2f6687e] this dev
1 file changed, 2 insertions(+)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ git status
On branch dev
nothing to commit, working tree clean
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (dev)
$ git checkout master
Switched to branch 'master'
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git branch -v
dev 2f6687e this dev
* master 667edc5 5 tijiao
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes not staged for commit:
(use "git add
(use "git restore
modified: test.txt
no changes added to commit (use "git add" and/or "git commit -a")
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "this master" test.txt
[master 8a2c267] this master
1 file changed, 3 insertions(+), 1 deletion(-)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git branch -v
dev 2f6687e this dev
* master 8a2c267 this master
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git merge dev
Auto-merging test.txt
CONFLICT (content): Merge conflict in test.txt
Automatic merge failed; fix conflicts and then commit the result.
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master|MERGING)
$ cat test.txt
aaaaaaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
<<<<<<< HEAD
master master master master
=======
dev dev dev dev dev dev
>>>>>>> dev
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master|MERGING)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master|MERGING)
$ cat test.txt
aaaaaaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
master master master master
dev dev dev dev dev dev
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master|MERGING)
$ git add test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master|MERGING)
$ git status
On branch master
All conflicts fixed but you are still merging.
(use "git commit" to conclude merge)
Changes to be committed:
modified: test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master|MERGING)
$ git commit -m "merge"
[master da271e4] merge
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
nothing to commit, working tree clean
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git reflog
da271e4 (HEAD -> master) HEAD@{0}: commit (merge): merge
8a2c267 HEAD@{1}: commit: this master
667edc5 HEAD@{2}: checkout: moving from dev to master
2f6687e (dev) HEAD@{3}: commit: this dev
667edc5 HEAD@{4}: checkout: moving from master to dev
667edc5 HEAD@{5}: checkout: moving from dev to master
667edc5 HEAD@{6}: checkout: moving from master to dev
667edc5 HEAD@{7}: reset: moving to 667edc5
f49bba2 HEAD@{8}: reset: moving to f49bba2
7f05494 HEAD@{9}: reset: moving to 7f05494
667edc5 HEAD@{10}: reset: moving to 667edc5
33764f8 HEAD@{11}: reset: moving to HEAD^
7f05494 HEAD@{12}: reset: moving to HEAD^^
667edc5 HEAD@{13}: commit: 5 tijiao
f49bba2 HEAD@{14}: commit: 4 tijiao
7f05494 HEAD@{15}: commit: 3 tijiao
33764f8 HEAD@{16}: commit: 2 commit
1456952 HEAD@{17}: commit (initial): 1 commit
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add
and then push using the remote name
git push
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git push
fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
git remote add
and then push using the remote name
git push
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git push https://github.com/wujiangweiaa/wujiangwei.git master
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: cHRM chunk does not match sRGB
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 4 threads
Compressing objects: 100% (13/13), done.
Writing objects: 100% (24/24), 1.66 KiB | 283.00 KiB/s, done.
Total 24 (delta 5), reused 0 (delta 0)
remote: Resolving deltas: 100% (5/5), done.
To https://github.com/wujiangweiaa/wujiangwei.git
* [new branch] master -> master
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git remote add wujiangwei https://github.com/wujiangweiaa/wujiangwei.git
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git remote -v
wujiangwei https://github.com/wujiangweiaa/wujiangwei.git (fetch)
wujiangwei https://github.com/wujiangweiaa/wujiangwei.git (push)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ vim test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
master master master master
dev dev dev dev dev dev
tian jia yi hang
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes not staged for commit:
(use "git add
(use "git restore
modified: test.txt
no changes added to commit (use "git add" and/or "git commit -a")
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git add test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit test.txt
Aborting commit due to empty commit message.
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git push wujiangwei master
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: cHRM chunk does not match sRGB
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/wujiangweiaa/wujiangwei.git/'
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git push wujiangwei master
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: cHRM chunk does not match sRGB
Everything up-to-date
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ^C
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
master master master master
dev dev dev dev dev dev
tian jia yi hang
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged
modified: test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git commit -m "this xiugai" test.txt
[master 292fc5f] this xiugai
1 file changed, 1 insertion(+)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git push wujiangwei master
libpng warning: iCCP: cHRM chunk does not match sRGB
libpng warning: iCCP: cHRM chunk does not match sRGB
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 285 bytes | 285.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/wujiangweiaa/wujiangwei.git
da271e4..292fc5f master -> master
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git remote tclone https://github.com/wujiangweiaa/test_clone.git
error: Unknown subcommand: tclone
usage: git remote [-v | --verbose]
or: git remote add [-t
or: git remote rename
or: git remote remove
or: git remote set-head
or: git remote [-v | --verbose] show [-n]
or: git remote prune [-n | --dry-run]
or: git remote [-v | --verbose] update [-p | --prune] [(
or: git remote set-branches [--add]
or: git remote get-url [--push] [--all]
or: git remote set-url [--push]
or: git remote set-url --add
or: git remote set-url --delete
-v, --verbose be verbose; must be placed before a subcommand
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git remote add tclone https://github.com/wujiangweiaa/test_clone.git
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git clone tcone
fatal: repository 'tcone' does not exist
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cd..
bash: cd..: command not found
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ pwd
/c/Users/Administrator/Desktop/myRepos
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cd ..
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ pwd
/c/Users/Administrator/Desktop
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ git clone tclone
fatal: repository 'tclone' does not exist
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ git clone https://github.com/wujiangweiaa/test_clone.git
Cloning into 'test_clone'...
warning: You appear to have cloned an empty repository.
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ ls
BurpUnlimited.jar.lnk*
desktop.ini
EditPlus.lnk*
FeiQ.exe*
'Git-2.24.0.2-64-bit(2).exe.qbl'*
Git-2.24.0.2-64-bit.exe.qbl*
git分享课/
myRepos/
QQ浏览器.lnk*
QQ影像.lnk*
test_clone/
'WPS 2019.lnk'*
百度网盘.lnk*
格式工厂.lnk*
工作文档.lnk*
酷狗音乐.lnk*
麻阳冰糖橙191126订单.xlsx
拼多多商家工作台.lnk*
日志.txt
腾讯影视库.lnk*
网易有道词典.lnk*
文件纪录.txt.lnk*
新建文本文档.txt
有道云笔记.lnk*
找秒杀团队.lnk*
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ cd test_clone/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/test_clone (master)
$ ls -al
total 32
drwxr-xr-x 1 Administrator 197121 0 十一月 26 15:00 ./
drwxr-xr-x 1 Administrator 197121 0 十一月 26 15:00 ../
drwxr-xr-x 1 Administrator 197121 0 十一月 26 15:00 .git/
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/test_clone (master)
$ cd ..
Administrator@XPWY-41-WJW MINGW64 ~/Desktop
$ cd myRepos
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ ls
test.txt
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ git pull wujiangwei master
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/wujiangweiaa/wujiangwei
* branch master -> FETCH_HEAD
292fc5f..b900330 master -> wujiangwei/master
Updating 292fc5f..b900330
Fast-forward
test.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/myRepos (master)
$ cat test.txt
aaaaaaaaaaaaaaaab
bbbbbbbbbbbbbbbb
ccccccccccccccc
dddddddddddddddd
eeeeeeeeeeeeeee
master master master master
dev dev dev dev dev dev
tian jia yi hang
wo shi yuancheng ku zhi jie xiugai de
Administrator@XPWY-41-WJW MINGW64 ~/Desktop/m