zoukankan      html  css  js  c++  java
  • Android studio 使用git仓库记录

    studio 绑定git

    settings --> verson control -->git
    在项目文件目录右击打开git bash here操作界面

    查看git项目安装位置
    找到id_rsa.pub 里的sshkey 添加到github里

    创建一个ssh keys:
    git bash here里输入:ssh-keygen -t rsa -C "邮箱地址"
    参数1:默认位置
    参数2,参数3 : 表示要输入的密码,都可以选择默认,直接按回车

    网页:github --> settings --> SSH and GPG keys --> 粘贴进去

    配置提交忽略文件:
    项目更目录下 --> gitignore 文件里配置相应的过滤配置

    初始化本地git仓库:
    VCS-->Import into Version Control-->Create Git Repository

    将本地代码仓库与远程代码仓库关联
    git remote add origin git@gitlab.com:代码位置

    git pull 下拉代码  如果有密码,填写创建密匙时的密码

    创建git项目分支

    VCS --> git --> branche --> new branche --> 分支名字
    提交代码:VCS --> git --> commit
    推送代码到远程仓库:VCS --> git --> push
    网页上git上对分支进行合并

    删除文件

    git rm -r 文件名 --cached

    //删除完提交,设置更新记录,最后记得推送到远程仓库

    git commit -m '删除不必要的文件'

  • 相关阅读:
    压缩流GZipStream
    委托和事件
    .NET垃圾回收机制
    程序集相关知识
    生活
    poj 3767 I Wanna Go Home
    fw:Python GUI的设计工具
    How to configure an NTP client and server on CentOS/RedHat
    FW:Tripwire
    Bash if 判断 集合
  • 原文地址:https://www.cnblogs.com/timipaul/p/11332233.html
Copyright © 2011-2022 走看看