我在linode的服务器上安装了gitlab.gitlab的所有服务都很棒.我能够登录,创建用户,回购等.但我遇到的问题是,当我尝试推送回购时,它会为git用户提示密码,如下所示:
git@gitlab.myserver.com's password
Run Code Online (Sandbox Code Playgroud)
我已按照安装gitlab的说明进行操作:https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md并禁用登录使用安装中提到的以下行获取用户git指南:
sudo adduser --disabled-login --gecos'GitLab'git
我正在使用gitlab版本6.可能是什么问题?
输出:ssh -Tvvv git@gitlab.myserver.com如下:
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to gitlab.myserver.com [MY_IP] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/swaroop/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/swaroop/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist …Run Code Online (Sandbox Code Playgroud) 我想在Windows 7(32位)机器上使用git-bash自带的github客户端.不知何故,git-bash已经$PATH从windows系统中学到了变量PATH.但是,我发现$PATH在git-bash中没有正确解析win系统PATH的空间.
例如$PATH输出:
"..../c/Program:没有这样的文件或目录"
无论如何要解决它吗?用于构造$PATHfor git shell 的git-bash脚本在哪里?谢谢
从上一个VSCode版本开始,有一个弹出窗口询问我是否要允许Git打开.好吧,我允许这个,现在每当我尝试打开集成终端时,Git Shell会在外部打开并关闭集成终端.
我的用户配置:
"terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
但它没有帮助,因为git已经在运行.
我想打开powershell,并在VSCode中使用git shell,就像之前一样.我怎样才能做到这一点?
我git config -l --show-origin按照VonC的建议运行:
file:"C:\\ProgramData/Git/config" core.symlinks=false
file:"C:\\ProgramData/Git/config" core.autocrlf=true
file:"C:\\ProgramData/Git/config" core.fscache=true
file:"C:\\ProgramData/Git/config" color.diff=auto
file:"C:\\ProgramData/Git/config" color.status=auto
file:"C:\\ProgramData/Git/config" color.branch=auto
file:"C:\\ProgramData/Git/config" color.interactive=true
file:"C:\\ProgramData/Git/config" help.format=html
file:"C:\\ProgramData/Git/config" http.sslcainfo=D:/TOOLS/Git/mingw64/ssl/certs/ca-bundle.crt
file:"C:\\ProgramData/Git/config" diff.astextplain.textconv=astextplain
file:"C:\\ProgramData/Git/config" rebase.autosquash=true
file:"D:\\TOOLS\\Git\\mingw64/etc/gitconfig" credential.helper=manager
file:C:/Users/myusername/.gitconfig filter.lfs.clean=git-lfs clean -- %f
file:C:/Users/myusername/.gitconfig filter.lfs.smudge=git-lfs smudge -- %f
file:C:/Users/myusername/.gitconfig filter.lfs.process=git-lfs filter-process
file:C:/Users/myusername/.gitconfig filter.lfs.required=true
file:C:/Users/myusername/.gitconfig user.name=MYName
file:C:/Users/myusername/.gitconfig user.email=some@email.com
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=false
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config core.symlinks=false
file:.git/config core.ignorecase=true
file:.git/config remote.origin.url=https://github.com/MyProject/my-project.git
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master
file:.git/config branch.routing.remote=origin …Run Code Online (Sandbox Code Playgroud) 我不知道为什么,最近git shell要求我在老式的OpenSSH窗口中获取凭据(顺便说一下,我使用https连接),而不是仅仅在控制台中提示.
这使我无法使用wincred,我总是要输入我的凭据.非常烦人,特别是当我输入错字时,控制台光标消失了.如何返回默认模式?
系统:Windows 7
控制台:ConEmu
感谢帮助!
我对默认的bash shell快捷方式(emacs样式)非常熟悉.例如,如果我想按一个单词向前移动光标,我会按下Alt+F(与emacs中相同).我可以用上一个命令Ctrl+P.
甚至可以在Windows PowerShell中覆盖这些快捷方式吗?如果是这样,有没有人知道将默认的bash shell快捷方式配置映射到powershell的好方法(例如,在bash shell中你可以说set -o emacs)?
如果它有帮助,我并不真的关心powershell每个说法,我关心posh-git shell.但是,git-shell从powershell继承了它的属性.
git shell有一些有用的命令,它们不是windows常用cmd(ls,git grep)的一部分.
有没有像*nix这样的命令
more filename.ext
Run Code Online (Sandbox Code Playgroud)
在git shell中可用吗?
我开始在 Windows 系统中使用 git。我使用了 Git Desktop 附带的 Git Shell。此命令行工具始终显示您当前所在的分支以及简短的彩色形式的 git 状态(未跟踪文件的数量、已更改文件的数量、已删除文件的数量)。我发现这真的很方便。
现在我把我的系统完全换成了Linux,但我没有发现任何类似的东西。有没有办法让 Linux bash 像 Windows Git Shell 一样显示分支和状态?我目前正在使用 Xubuntu (16.04) 终端。
我有一个具有专用git用户和存储库的服务器
我正在尝试使用该git-shell方法允许我的开发人员在几个项目上工作.
我即将把我的git用户的shell更改为git-shell
如果我这样做,我将无法再与标准shell连接(这就是想法).
问题:那么我将如何创建新的存储库?
我是否每次都会与sudoer建立联系并创建回购然后将其展开?
我正在尝试直接从git shell向.gitignore添加特定文件。要忽略的文件是token.mat
如果输入:
touch .gitignore
Run Code Online (Sandbox Code Playgroud)
然后使用文本编辑器手动打开.gitignore并添加
token.mat
Run Code Online (Sandbox Code Playgroud)
保存并关闭,它可以工作,git会忽略它(当我在git shell中键入git status时,我不再看到token.mat)
但是如果在git shell中键入:
touch .gitignore
echo 'token.mat' >> .gitignore
Run Code Online (Sandbox Code Playgroud)
然后git不会忽略token.mat,当我输入git status时我仍然看到它。但是,当我通过文本编辑打开.gitignore时,我看到列出了token.mat,它看起来与手动添加时完全相同。
有谁知道这是为什么,或者我如何直接从git shell将文件添加到.gitignore?
感谢您的任何帮助!
其他详情:
编辑:如果您使用 git bash,应该注意的一件事是最好保持 AUTOCRLF FALSE
git config --global core.autocrlf false
Run Code Online (Sandbox Code Playgroud)
================================================== ======
我是 git 的新手,但在部署文件时遇到了问题...
我刚刚使用命令成功拉取了文件(?),现在我正在尝试推送...
提交日志如下:(我有几次还原,因为由于 LF、CRLF 或未跟踪的文件错误,我多次提交失败)
在 AS 中,我收到“推送到原点/主站被拒绝”
推送时的错误
hint: Updates were rejected because the tip of your current branch is behind
! refs/heads/master:refs/heads/master [rejected] (non-fast-forward)
Done
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
18:53:20.176: [Lab1_movie] git -c core.quotepath=false -c
log.showSignature=false pull --progress --no-stat -v …Run Code Online (Sandbox Code Playgroud)