Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git clone specific commit

# make a new blank repository in the current directory
git init

# add a remote
git remote add origin url://to/source/repository

# fetch a commit (or branch or tag) of interest
# Note: the full history up to this commit will be retrieved unless 
#       you limit it with '--depth=...' or '--shallow-since=...'
git fetch origin <sha1-of-commit-of-interest>

# reset this repository's master branch to the commit of interest
git reset --hard FETCH_HEAD
Comment

clone at a given commit github

git checkout <commit_sha>
Comment

how to clone a specific commit from github

bash 
git clone [URLTORepository]
git checkout  [commithash]

commit hash looks like this "45ef55ac20ce2389c9180658fdba35f4a663d204"
Comment

PREVIOUS NEXT
Code Example
Shell :: python libraries for game development 
Shell :: git get back to most recent commit 
Shell :: The file AppDataRoaming pmyarn.ps1 is not digitally signed. 
Shell :: create github ssh key 
Shell :: bash check if file is readable 
Shell :: linux make home dir 
Shell :: awk field separator 
Shell :: npm i postgresql 
Shell :: how to get process id in linux 
Shell :: find external ip ubuntu 
Shell :: Installing ionic local notification plugin 
Shell :: comment installer virtualbox sur kali linux 
Shell :: how to install wsl 2 
Shell :: mongodb database not connected docker 
Shell :: manually shut down docker mac 
Shell :: enviroment variables in firebase 
Shell :: test ssh connection for github 
Shell :: push branch to main github 
Shell :: bash script change directory run a command 
Shell :: command to start a system service 
Shell :: error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fatal: unpack-objects failed 
Shell :: exit status bash 
Shell :: sublime downloafd 
Shell :: crear archivos desde cmd 
Shell :: conda install spyder 4.2.5 
Shell :: merge_otu_tables.py qiime 
Shell :: add user to sudoer "zsh" same customization for root 
Shell :: ho to autostart chrome on linux boot 
Shell :: kazam or simplescreenrecord Recording the Black Screen in linux. 
Shell :: how to run orange3 on linux 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =