zoukankan      html  css  js  c++  java
  • Github 提交本地代码 到远程 菜鸟 简明教程

     方法1:

    1. 右击项目文件夹  Git Bash Here 或   Git clone  Url  远程仓库地址  Directory  本地文件夹

    2. 拷贝(新建)项目文件

    3. 添加项目文件 执行 git add .  或 右击项目文件夹 Tortoise Git ->  Add..

    4. 同步 执行 git commit (Git Sync...)  或 右击项目文件夹  Git Commit ->  分支

    方法2:

    1. 右击项目文件夹  Git Bash Here 或   Git clone  Url  远程仓库地址  Directory  本地文件夹

    2. 拷贝(新建)项目文件

    3. 排除项目文件 执行 TortoiseGit -> Add to ignore list.  或 右击项目文件夹 TortoiseGit -> Add to ignore list.

    4. 同步 执行 git commit (Git Sync...)  或 右击项目文件夹  Git Commit ->  分支

    方法3:

    1. 右击项目文件夹  Git Bash Here 或   Git clone  Url  远程仓库地址  Directory  本地文件夹

    2. 执行 git init

    3. 执行 git remote add origin  Url

    4. 拷贝(新建)项目文件

    5. 执行 git add .  或 右击项目文件夹 Tortoise Git ->  Add...

    6. 执行 git commit   或 右击项目文件夹  Git Commit ->  分支

    7. Git Sync...  右 击界面列表 Push

    git remote origin https://gitee.com/R**i/th****d.git
    
    
    
    
    git config --global user.name "l*****s.outlook.com"
    
    
    git add .
    git add.
    git add
    
    git push -u origin master
    
    git pull --rebase origin master
    
    git clone -q
    git clone
    
    git commit -m '22'
    
    git remote -v
    
    
    git init
    git remote add origin https://gitee.com/R**i/t*****d.git
    git add .

    git commit -m '22'

    //设置用户名邮箱 项目目录 .git文件夹 打开 git bash here
    git config user.name "name"
    git config user.email "email"

    //git  Authentication failed for又不弹出用户名和密码 解决办法

    git config user.name "name"

    git config user.email "email"
     
     

    【】gitlab 显示提交者 autoBackend authored 解决办法  设置用户名邮箱

    【转】 git remote: HTTP Basic: Access denied 错误解决办法

    原因:本地git配置的用户名、密码与gitlabs上注册的用户名、密码不一致。


    解决方案:
    1. 如果账号密码有变动 用这个命令 git config --system --unset credential.helper 重新输入账号密码 应该就能解决了
    2. 如果用了第一个命令 还不能解决问题那么 用这个命令:
    git config --global http.emptyAuth true
    3.如果以上两个方法不起作用,那么采用以下方法:

    进入控制面板》用户账号》凭据管理器?windows凭据》普通凭据,在里面找到git,点开编辑密码,更新为最新密码之后就可以正常操作了。Y

  • 相关阅读:
    CopyOnWriteArrayList与ConcurrentHashMap
    Latch、Barrier、ThreadLocal
    Future和FutureTask
    SingleThreadExecutor、FixedThreadExecutor、CachedThreadPool、ScheduledThreadPoolExecutor
    ThreadPoolExecutor
    ConcurrentLinkedQueue
    PriorityBlockingQueue
    pom activeByDefault 不生效
    配置log4j2日志报错 Cannot find the declaration of element 'Configuration'
    顶级技术盛会KubeCon 2020,网易轻舟布道多云环境云原生应用交付
  • 原文地址:https://www.cnblogs.com/xdot/p/5287955.html
Copyright © 2011-2022 走看看