Adds Tracking path changes and Share & Update
This commit is contained in:
parent
15d4fc3cb3
commit
639e986b53
22
Readme.md
22
Readme.md
|
@ -13,6 +13,7 @@
|
||||||
![Remote Execution](img/Remote_execution.png)
|
![Remote Execution](img/Remote_execution.png)
|
||||||
|
|
||||||
## Basic commands
|
## Basic commands
|
||||||
|
=================
|
||||||
|
|
||||||
### Initialize an existing directory as a Git repository
|
### Initialize an existing directory as a Git repository
|
||||||
```bash
|
```bash
|
||||||
|
@ -75,6 +76,27 @@ Date: Thu Apr 1 12:11:34 2021 +0200
|
||||||
|
|
||||||
First Commit
|
First Commit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## TRACKING PATH CHANGES
|
||||||
|
### Versioning file removes and path changes
|
||||||
|
=================================
|
||||||
|
|
||||||
|
Delete the file from project and stage the removal for commit
|
||||||
|
|
||||||
|
>git rm [file]
|
||||||
|
|
||||||
|
Change an existing file path and stage the move
|
||||||
|
|
||||||
|
>git mv [existing-path] [new-path]
|
||||||
|
|
||||||
|
Show all commit logs with indication of any paths that moved
|
||||||
|
|
||||||
|
>git log --stat -M
|
||||||
|
|
||||||
|
## SHARE & UPDATE
|
||||||
|
### Retrieving updates from another repository and updating local repos
|
||||||
|
=================================
|
||||||
|
|
||||||
### History
|
### History
|
||||||
```bash
|
```bash
|
||||||
history
|
history
|
||||||
|
|
Loading…
Reference in New Issue