We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mkdir box //box是文件夹名,创建box文件夹
git config --global user.name "ooxx" //配置GIT用户名
git config --global user.email "[email protected]" //配置GIT邮箱
git init //如果要用GIT监管,用此命令初始化
git status //查看文件状态
git add filename //添加单个文件到暂存区
git add . //注意后面有一个点,将所有修改后的文件或新文件加到本地暂存区
git commit -m "some string" //提交到本地
git push -u origin master //提交到服务器
git log //查看操作记录
git revert HEAD //还原操作
git branch branchname //创建一个新分支
git checkout branchname //切换到某某分支
git checkout -b branchname //将以上两条命令合并成一个
git checkout master git merge branchname //检出,合并分支
git remote add origin 你的github仓库地址 //git remote add origin 你的github仓库地址
git push -u origin master //使用 git push ,去把 master 这个分支推送到这个远程的仓库里面。
git rm app/views/Application/index.html //删除文件
git rmdir //删除文件夹,单文件夹要为空
git clone [email protected]:syking/smrt-lbs-new.git //克隆远程的项目
git pull origin //更新内容
git merge brachName //把分支合并到主干
git branch //显示所有分支
git branch -d brachName //删除一个分支
The text was updated successfully, but these errors were encountered:
No branches or pull requests
mkdir box //box是文件夹名,创建box文件夹
git config --global user.name "ooxx" //配置GIT用户名
git config --global user.email "[email protected]" //配置GIT邮箱
git init //如果要用GIT监管,用此命令初始化
git status //查看文件状态
git add filename //添加单个文件到暂存区
git add . //注意后面有一个点,将所有修改后的文件或新文件加到本地暂存区
git commit -m "some string" //提交到本地
git push -u origin master //提交到服务器
git log //查看操作记录
git revert HEAD //还原操作
git branch branchname //创建一个新分支
git checkout branchname //切换到某某分支
git checkout -b branchname //将以上两条命令合并成一个
git checkout master git merge branchname //检出,合并分支
git remote add origin 你的github仓库地址 //git remote add origin 你的github仓库地址
git push -u origin master //使用 git push ,去把 master 这个分支推送到这个远程的仓库里面。
git rm app/views/Application/index.html //删除文件
git rmdir //删除文件夹,单文件夹要为空
git clone [email protected]:syking/smrt-lbs-new.git //克隆远程的项目
git pull origin //更新内容
git merge brachName //把分支合并到主干
git branch //显示所有分支
git branch -d brachName //删除一个分支
The text was updated successfully, but these errors were encountered: