zoukankan      html  css  js  c++  java
  • 使用idea来部署git项目

    使用idea来部署git项目

    一)、将项目交由git管理

    VCS ---->import into Version Cntorl ------>create Git Repository ----->选择交给git管理的项目(成功,项目变为紫色)

    二)、将项目添加到git

    选中项目------》右键 -------》Git ----->add (成功项目变为绿色)

    提交到本地仓库

    项目 ----->Git ------> commit directory (成功变为黑色)

    三)、提交到Git远程仓库

    1. 在Git上创建新的仓库
    2. 项目右键 ----- 》Git ----- >resposity -----》 push ------》Define remote ----->设置name 和Url

    四)、拉取github上的项目

    找到github上的项目 -------》点击clone or download ---->复制地址 -----》VCS ---->CHECKOUT FROM VERSION ---->Git ---->Url填入复制的地址----》----->选择本地保存的项目路径-----》测试连接-------》连接成功----》clone

    将项目导入idea :

    file -----> open---->选择项目 ------》ok

    五)、拉取在git上更新的项目

    右键 -----》responsity ----->pull (拉取)

    创建分支

    项目右键 --------》Git ------->Responsity ------>Branches -----> new Branshes ----->分支名

    切换分支

    项目右键 ------》Git -----》responsity ------>branchers----->checkout

    金麟岂能忍一世平凡 飞上了青天 天下还依然
  • 相关阅读:
    HDU 1022 Train Problem I
    HDU 1702 ACboy needs your help again!
    HDU 1294 Rooted Trees Problem
    HDU 1027 Ignatius and the Princess II
    HDU 3398 String
    HDU 1709 The Balance
    HDU 2152 Fruit
    HDU 1398 Square Coins
    HDU 3571 N-dimensional Sphere
    HDU 2451 Simple Addition Expression
  • 原文地址:https://www.cnblogs.com/Auge/p/11609637.html
Copyright © 2011-2022 走看看