Skip to content

Commit

Permalink
add git commands to chmod und to reset remote (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKrishnaAgarwal committed Dec 27, 2022
2 parents 41ed82e + 0ceb2af commit 7f9d086
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ Commit all staged files to the versioned history
Commit all your tracked files to the versioned history
```git commit -am "commit message```
<br>
Set the executable flag to an file foo.sh
```git update-index --chmod=+x foo.sh```
<br>
Unstages the file, keeping the file changes
```git reset [file]```
<br>
Expand All @@ -134,6 +137,10 @@ Revert everything to the last commit
Overwrite commit history with your local history (force push):
```git push --force```
<br>
Reset remote branch to specific commit (danger: use only if not distributed to other people before):
```git reset --hard <commit-hash> && git push -f origin <branch-name>```
<br>

### 🚰 Synchronize
Get the latest changes from the origin (no merge)
```git fetch```
Expand Down

0 comments on commit 7f9d086

Please sign in to comment.