Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git use stash on another computer

# 1. Stash current changes
 git stash

# 2. Create stash as patch (0 is the index of the stash)
# If you have multiple stashes, you can use >> to append the next
# stash to the same file
# e.g. .. "stash@{1}" -p >> changes.patch
# .. "stash@{2}" -p >> changes.patch. etc..

 git stash show "stash@{0}" -p > changes.patch

# 3. Apply patch

git apply changes.patch
Comment

PREVIOUS NEXT
Code Example
Shell :: social app django 
Shell :: jq unencode string 
Shell :: install arch package 
Shell :: delete ec2 from terraform 
Shell :: remap caps lock to shift linux 
Shell :: read input from stdin bash script 
Shell :: Example of Bash Variable in String 
Shell :: can not login kali linux 
Shell :: bash cd root permission denied 
Shell :: how to create a shortcut in ubuntu 
Shell :: ncrack ftp brute force 
Shell :: rsync exclude empty directories 
Shell :: aws instance agent installation on command line (cloudwatchlogs) 
Shell :: save command output 
Shell :: how to clone repo and change name 
Shell :: how to remove file from directory in linux 
Shell :: create next app with jest 
Shell :: git untract file 
Shell :: Create and Switch To a New Branch in git command 
Shell :: docker stop swarm 
Shell :: if statement bash 
Shell :: zip command in linux 
Shell :: delete a branch from local 
Shell :: undo pushed commit 
Shell :: example bash script 
Shell :: npm install from git 
Shell :: list all local branches off a branhc 
Shell :: upload on s3 
Shell :: how to delete all text inside vi 
Shell :: bash shell for windows 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =