sh git workflow:创建一个新项目

Posted

tags:

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

# There are two ways to get a git repository
# Assume a properly configured git repository is set up at <remoteURL>

### 1. Initializing a repo in an existing directory
# Create the git repository skeleton in the .git subdirectory
git init
git add <some_file>
git commit -m "initial commit"
# Add a new remote repo called remoteName
git remote add <remoteName> <remoteURL>
# Publish your local branch master to the remote master
# and set your local master to trach the remote master
git push -u <remoteName> master

### 2. Cloning an existing repository
# Clone the remote repo
git clone <remoteURL>
# Set your local master to trach the remote master
git checkout master
git branch -u <remoteName>/master

以上是关于sh git workflow:创建一个新项目的主要内容,如果未能解决你的问题,请参考以下文章

sh Alfred Workflow用于创建SASS / COMPASS项目

sh 来自http://rypress.com/tutorials/git/patch-workflows

sh 来自http://rypress.com/tutorials/git/patch-workflows

Git workflow

如何在 git push 上解决“拒绝允许 OAuth 应用程序创建或更新工作流”

Git - Basic Git Workflow