Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to delete remote file locally on git

$ git checkout git checkout -- myfile
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)

nothing added to commit but untracked files present (use "git add" to track)

$ git rm myfile
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

deleted: myfile
Comment

PREVIOUS NEXT
Code Example
Shell :: tar uncompress tgz 
Shell :: download directory ssh linux 
Shell :: proxmox upgrade 
Shell :: basic git commands 
Shell :: mysql connect another port 
Shell :: how to erase router configuration in cisco packet tracer 
Shell :: cp with folder structure 
Shell :: ionic splash screen dimensions 
Shell :: basename bash 
Shell :: nvmrc 
Shell :: git untract file 
Shell :: Enable-Migrations 
Shell :: flutter desktop 
Shell :: linux how to execute a file 
Shell :: make new branch in git 
Shell :: scaffold controller ef core 
Shell :: Command to create the private key and public using the openssl command : 
Shell :: nginx install ssl certificate centos 
Shell :: save terminal output to file with script 
Shell :: bash multiline string variable 
Shell :: how to push repository to github 
Shell :: nvm github 
Shell :: git push origin cannot be resolved to branch 
Shell :: github new repo 
Shell :: jenkins builds 
Shell :: linux distributions command line 
Shell :: which command is used to create a new git repository 
Shell :: reset git from last commit 
Shell :: flutter doctor --android-licenses error 
Shell :: sed two patterns 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =