Tag: git

第一个Bash脚本问题

我是Bash的新手,我正在尝试制作一个简单的脚本来自动化Git拉动和推出回购,但我无法让它工作。 这是代码的pastebin: http : //pastebin.com/JrXqktD4 #!/bin/bash #Git Puller / Pusher for MobArenaBattles echo “Please type whether you want to pull or push:” read proc cd $HOME/Desktop/IdeaProjects/Plugins/MobArenaBattles if [“$proc”=”push”]; then echo “Please type the commit message:” read message git status git add -A git commit -m $message git push elif [“$proc”=”pull”]; then git status git pull […]

如何使用runit和git-daemon-run 修复处理

我正在尝试使用安装Django sudo apt-get install python-django 但是我收到了错误 Reading package lists… Done Building dependency tree Reading state information… Done python-django is already the newest version. The following packages were automatically installed and are no longer required: bacula-common codeblocks-common enscript g++-4.9 g++-4.9-multilib geany-common lib32stdc++-4.9-dev libabw-0.1-1 libboost-date-time1.58.0 libboost-filesystem1.55.0 libboost-iostreams1.55.0 libboost-iostreams1.58.0 libcdr-0.1-1v5 libcmis-0.5-5v5 libcodeblocks0 libdb5.3-java libdb5.3-java-jni libe-book-0.1-1 libeot0 libetonyek-0.1-1 libfreehand-0.1-1 […]

git ssh:权限被拒绝(publickey)

我尝试使用github,所以我按照帮助文档。 但是当我使用这个命令时: ssh -vT git@github.com我得到的错误是这样的: jacos@Jing:~/.ssh$ ssh -vT git@github.com OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011 debug1: Reading configuration data /home/jacos/.ssh/config debug1: Applying options for github.com debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to ssh.github.com [207.97.227.248] port 443. debug1: Connection established. debug1: identity file /home/jacos/.ssh/id_rsa type 1 debug1: Checking blacklist […]

如何打包我的git repo并发布到我的launchpad ppa

我有一个名为logger的 GitHub repo。 它是一个C ++库。 我正在做什么来打包并发布到我的启动板ppa是 cd rm -Rf Packages2 mkdir Packages2 cp -R workspace/logger/ Packages2/logger-1.0 cd Packages2/logger-1.0 rm -R build/ rm -R debian/ rm -R dist/ rm -R nbproject/ rm -R QtBuild/ rm -Rf .git rm Makefile.old rm CMakeLists.txt.user cd ~/Packages2/logger-1.0/ make clean cd .. rm -Rf logger-1.0.tar.gz logger_* logger logger-dev_* liblogger1_* logger1_* build-area/logger-1.0 […]

使用手表时为什么不出现git颜色?

运行git status -sb我看到: 我想看(来自procps-ng 3.3.3)一个存储库。 –color选项应该保持颜色。 有趣的是,它适用于ls : $ watch –color “ls –color” 显示: 然而对于git ,颜色消失了: $ watch –color “git status -sb” 那么,为什么watch显示来自ls但不来自git输出的颜色?

在LTS上安装更新版本的git

我无法升级我的lucid lynx 10.04 LTS,因为ubuntu的新发行版在该计算机上不起作用。 我需要安装一个git版本1.7.10进行凭据管理。 10.04 LTS的Git版本是1.7.0.4: $ dpkg -l *git* +++-==============-==============-============================================ ii git-core 1:1.7.0.4-1ubu fast, scalable, distributed revision control 有没有办法或后端来安装git 1.7.10或更新?

使用Apt-Get安装Git时出错

当我尝试在Ubuntu 11.04的服务器发行版上安装git时,出现错误。 我使用以下命令: sudo apt-get install git 这就产生了这个错误: (Reading database … dpkg: warning: files list file for package `git’ missing, assuming package has no files currently installed. (Reading database … 20310 files and directories currently installed.) Preparing to replace git 1:1.7.4.1-3 (using …/git_1%3a1.7.4.1-3_i386.deb) … /var/lib/dpkg/tmp.ci/preinst: 12: dpkg-maintscript-helper: not found dpkg: error processing /var/cache/apt/archives/git_1%3a1.7.4.1-3_i386.deb (–unpack): subprocess […]

RabbitVCS在Ubuntu 16.04 LTS上

最近我安装了Ubuntu 16.04,我想在我的系统上安装RabbitVCS。 我已经添加了PPA和apt更新,似乎还没有为xenial构建 http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages http://ppa.launchpad.net/rabbitvcs/ppa/ubuntu/dists/xenial/main/binary-i386/Packages 如何联系维护人员? 有人有工作的deb文件吗?

如何“快速”使用Git?

如何快速使用Git作为其默认版本控制而不是Bazaar?

在终端中预先安装当前的git分支

如何配置终端显示当前的git分支? 我想看到第二行而不是第一行: andy@bob:~/my_projects/project_x$ (master)~/my_projects/project_x$ 我不想运行git status来查看我目前在哪个分支!