git提交本地代码
来源:互联网 发布:蒙古 欧洲 知乎 编辑:程序博客网 时间:2024/06/04 19:17
git是个代码管理仓库,然后我们可以在上面提交代码,就是这么简单,其他的功能我也不清楚。。。
提交本地的代码到github其实也很简单。主要步骤如下:
1.进入你要提交代码的工程所在的文件夹。比如说project1,是我新建的一个工程
2.在该工程下执行:
git init
3.添加工程的文件:
git add *
4.将修改提交到缓存
git commit -m "first commit"
5.在github下创建一个名为project1的仓库
6.建立与远端仓库的连接
git remote add origin https://github.com/usrname/project17.将本地修改提交到远端仓库
git push -u origin master
以上就是简单的git使用,记录下来防止自己下次遗忘了。
0 0
- git提交本地代码
- git提交本地代码到新分支
- 提交本地代码到git(gogs)上
- git 提交本地代码到远程仓库
- 提交本地代码到git服务器
- 【Git】git将本地代码提交到远程仓库
- Git 本地提交
- Git本地提交
- git撤销本地提交
- Git Push(向远程Github提交本地代码)
- Git提交本地库代码到远程服务器的操作
- git使用、将本地代码提交到github
- 使用git提交本地代码到github上
- 初学GIT 一、提交本地代码(WIN10)
- Git将本地代码提交到coding上,切换分支
- Git命令提交代码到Gitblit本地服务器上
- github提交本地代码
- 【git】在git远程仓库中创建一个新项目并把本地代码提交上去
- c++ primer(第五版)笔记 第二章(2) 变量
- poj 3083 Children of the Candy Corn
- FFmpeg获取DirectShow设备数据(摄像头,录屏)
- HDU 寻找素数对
- block详解
- git提交本地代码
- 考研日记-7.29
- 关于C++中的虚拟继承的一些总结
- 文件上传漏洞-----图片马的剔除
- Servlet 第六课: Session的使用
- little error
- Choose a destination with a supported architecture in order to run on this device.
- fifo
- 在Emacs中使用etags来浏览代码