c_cpp git片段

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c_cpp git片段相关的知识,希望对你有一定的参考价值。

production:
23.253.208.38
stagging: 
162.242.163.130

/public_html/hectorllanquin/port/

// add files to repo
git add -n .
// delete added files (previo a commit)
git rm -r --cached .

// show hide files
defaults write com.apple.finder AppleShowAllFiles YES
// setting sublime text aseditor in git
git config --global core.editor "subl -n -w"
// list files in repo
git ls-tree --full-tree -r HEAD
//diff between 2 las commits
git diff HEAD~2..HEAD~1
 
# Server set-up step by step
git config --global user.name "Your Name Here"  
git config --global user.email "your_email@example.com"  
git —version  
black magic for getting a remote git repo setup:
 
git clone --bare httpdocs httpdocs.git
mv httpdocs httpdocs.backup
git clone httpdocs.git
 
Local set-up (push commits)
 
cd ~/Desktop/Sites/myWebsite
git init
git add *
git commit -m 'Start of new project'
git remote add origin ssh://username@xxx.xxx.xxx.xxx:xxxx/www/.../httpdocs.git
git push origin master
Server (pull commits)
 
cd ../
cd www/..../httpdocs/
git fetch
git diff origin/master
git merge origin/master

#remotes
git remote set-url origin https://github.com/user/repo2.git
git remote -v // view remotes
 
#command line stuff
 
rmdir // remove dir
rm -rf // remove all files
cd // move to folder
ls // #list all files
du -hs folderpath // sumarize folder size

# MOSTRAR LAS DIFERENCIAS EXISTENTES ENTRE MASTER Y OTRO BRANCH.:
git diff master..branch

#  MOSTRAR EL TOTAL DE COMMITS REALIZADOS POR LOS MIEMBROS DEL EQUIPO:
git shortlog -s -n

# OBTENER INFORMACIÓN SOBRE EL REPOSITORIO REMOTO:
git remote show origin 

git commit -m "message"
#server permissions
-R hllanquin:dev_all_sites

以上是关于c_cpp git片段的主要内容,如果未能解决你的问题,请参考以下文章

c_cpp 最后的片段

c_cpp Codeforces片段

c_cpp C ++片段

c_cpp C ++片段

c_cpp C ++片段

c_cpp C ++片段