1、初始化一个版本仓库:git init 2、Clone远程版本库 :git clone git@xxx.com:abc.git 3、添加远程版本库origin,语法为 git remote add [shortname] [url]:git remote add origin git@xxx.co ...
分类:
其他好文 时间:
2016-07-14 01:46:59
阅读次数:
135
创建好远程仓库,然后要从本地上传代码到远程仓库: 1.git init 初始化git本地仓库 2. git add 添加到暂存区 3. git commit -am "提交备注" 4. git remote add origin git@git.oschina.net:xxx.git 添加git远程 ...
分类:
其他好文 时间:
2016-07-13 20:59:05
阅读次数:
103
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:9001/api/size/get. (Reason: CORS header ...
分类:
数据库 时间:
2016-07-13 20:28:45
阅读次数:
320
转自: http://www.cnblogs.com/zuoca/archive/2012/07/09/Remote_Development_With_Netbeans_origin.html 工欲善其事,必先利其器系列--Netbeans之远程开发 实践难度:★★☆☆☆ 实用性 :★★★★☆ 你还 ...
分类:
Web程序 时间:
2016-07-13 15:32:29
阅读次数:
289
(1)本地初始化: git init (2)添加远程仓库: git remote add origin git@IP:relativeDir.git,添加完成后会在本地.git/config文件中看到添加的url,也可以修改这个url (3)拉取远程代码: git pull origin maste... ...
分类:
Web程序 时间:
2016-07-12 10:17:24
阅读次数:
184
push的时候出现"push rejected": 1)先fetch: 2)然后选择branches--origin/master rebaseOnto 3)再进行push,刚刚push的内容必须在VCS下的push才能找得到 ...
分类:
其他好文 时间:
2016-07-11 21:22:29
阅读次数:
386
相信大家用git提交代码时,会出现过这种尴尬场景。代码提交完比对的时候,发现完全比不出来到底改了哪些,因为它会显示把文件全部删除,然后又全部添加。那我们先看看原来提交的方法: 1.现在本地右击项目,git-提交,看看提交的更改文件,把不需要啊的点去,然后点击提交。 2.git push origin ...
分类:
其他好文 时间:
2016-07-11 18:57:08
阅读次数:
167
$ git remote -v #查看远程主机的网址$ git fetch <远程主机名> # 将某个远程主机的更新,全部取回本地$ git fetch <远程主机名> <分支名> # 取回origin主机的master分支$ git branch -r # 查看远程分支$ git branch - ...
分类:
其他好文 时间:
2016-07-11 18:53:52
阅读次数:
126
gitpull用法:gitpull<远程主机名><远程分支名>:<本地分支名>常用写法:1.全路径gitpulloriginmaster:master取回远程主机的master分支与本地的master分支合并2.省略本地分支gitpulloriginmaster取回远程主机名origin的master分支,并与本地的当前分支合并实质..
分类:
其他好文 时间:
2016-07-11 01:37:57
阅读次数:
449
Description You are going to compute the area of a special kind of polygon. One vertex of the polygon is the origin of the orthogonal coordinate syste ...
分类:
其他好文 时间:
2016-07-10 12:32:57
阅读次数:
120