• git 笔记-初始化


    进入项目所在的文件夹

    git init

    git remote add origin https://github.com/enderlu/test.git
    git push -u origin master

    免属于github密码

    https://www.jianshu.com/p/81ae6e77ff47

    1. 在命令行输入命令:
      git config --global credential.helper store
      ☞ 这一步会在用户目录下的.gitconfig文件最后添加:
        [credential]
            helper = store
    
    1. 现在push你的代码 (git push), 这时会让你输入用户名密码, 这一步输入的用户名密码会被记住, 下次再push代码时就不用输入用户名密码啦!
      ☞这一步会在用户目录下生成文件.git-credential记录用户名密码的信息.
      git config --global 命令实际上在操作用户目录下的.gitconfig文件, 我们cat一下此文件(cat .gitconfig), 其内容如下:



  • 相关阅读:
    CoreLocation
    通知(NSNotificationCenter)
    加载xib文件
    UITextField
    UIButton
    UILabel
    UIAlertController
    layoutSubviews
    Java AQS详解(转)
    Java中synchronized
  • 原文地址:https://www.cnblogs.com/coolyylu/p/8087940.html
Copyright © 2020-2023  润新知