Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
wiki-java
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 老徐
  • wiki-java
  • Wiki
  • git configuration and simple use

Last edited by 梅俊辉 Jun 16, 2016
Page history
This is an old version of this page. You can view the most recent version or browse the history.

git configuration and simple use

Eclipise中,import〉Project from Git ,单击next
选中Clone URI, Next
1

输入uri,user,password

2

Next,
选择要检出的分支

3

4

5

6

单击finish,项目会自动导入

配置git参数:
Window > Preferences > Team >Git >Configuration
UserSettings > AddEntry
添加name和email

7

8
单击Apply保存

Window > Preferences > Team >Git >Configuration
Repository Settings

9
或者直接单击location右边的 open,出现一个config文件
复制以下内容进去即可
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = http://tech.pingansec.com/ulindows/project_ucs.git
fetch = +refs/heads/:refs/remotes/origin/
[branch "test"]
remote = origin
merge = refs/heads/test
'''注意:如果checkout出来的是master分支,则
[branch "master"]
remote = origin
merge = refs/heads/master
高版本的Eclipse默认会配置好 Repository Settings部分

Clone repository
  • git configuration and simple use
  • Home
  • java code specification
  • maven environment configuration
  • shuidi js develope
  • ucs_project environment configuration