本文转载自: http://cni.stanford.edu/wiki/Git
Git
We are using gitosis to manage our git repositories on nims.
initial client configuration
IMPORTANT: This needs to be done on each machine you are planning to use git from.
git config --global user.name "YOUR NAME" git config --global user.email YOU@FOO.COM git config --global color.ui auto git config --global core.excludesfile '~/.gitignore' cat << EOF >> ~/.gitignore .DS_Store .*.swp .sconsign.dblite *.[ao] *.so *.py[co] EOF
creating a new repository
- Get an up-to-date version of the gitosis-admin repository by cloning or pulling.
- Configure gitosis.conf according to your needs. Add ssh keys as necessary. Commit and push gitosis-admin.
- Set up a new repository on your local machine and push it to the host server.
mkdir PROJECT && cd PROJECT touch README.txt git init && git add . && git commit -m 'initial commit' git remote add origin git@nims.stanford.edu:PROJECT.git git config branch.master.remote 'origin' git config branch.master.merge 'refs/heads/master' git push origin master
From now on, a simple git push
will be enough.
cloning an existing repository
git clone git@nims.stanford.edu:PROJECT.git
E.g.,
git clone git@nims.stanford.edu:ge.git git clone git@nims.stanford.edu:arduino.git
After this, git push
and git push
will work.
gitosis on FreeBSD
## http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way ## http://eagain.net/gitweb/?p=gitosis.git;a=blob_plain;f=README.rst;hb=HEAD ## on server portmaster devel/py-gitosis # devel/git: disable P4, CVS, CURL su - git gitosis-init < /tmp/id_rsa.pub # this is your public key; or paste at prompt, then enter ## on admin client git clone git@nims.stanford.edu:gitosis-admin.git cd gitosis-admin && vim gitosis.conf # add your project(s) and users git mv keydir/user.pub keydir/newuser.pub # if you don't like the default; must match gitosis.conf git add keydir/anotheruser.pub # the public ssh key of another user git commit -a -m 'adding new projects' && git push
Now you can simply push and pull repositories according to the rules described in gitosis.conf.
相关推荐
freeBSD11.0系列安装文档,本人实际操作记录,希望给大家带来上些帮助
freeBSD11.0系列安装文档,本人实际操作记录,希望给大家带来上些帮助
使代码处于足够好的状态,以便将其集成到源软件上的主要Valgrind存储库中(git://sourceware.org/git/valgrind.git) 替换当前的Valgrind FreeBSD端口版本。 当前版本为3.10,带有一些向后移植的修补程序。 我不...
关于本教程解释了如何在 FreeBSD 上安装以及 PHP、Node.js、git 和几个任务运行器。介绍如果您使用 PHP(PHP 超文本预处理器)开发应用程序,您可能已经阅读或听说现在许多项目选择敏捷方法来快速进行。 这包括测试...
kubectl-freebsd-如何在FreeBSD上构建和运行kubectl TLDR-简单方法 $ fetch https://github.com/dcasati/kubectl-freebsd/releases/download/release-1.9/kubectl $ chmod +x kubectl $ sudo mv kubectl /usr/local/...
您可以通过几种不同的方式来安装Git LFS客户端,具体取决于您的设置和首选项。 Linux用户。 可从获得Debian和RPM软件包。 macOS用户。 瓶已分发,可以通过brew install git-lfs 。 Windows用户。 Git LFS包含在的...
关键词:gitbash git-bash git bash bashgit bash-git bash git gitksh git-ksh git ksh kshgit ksh-git ksh git shell 插件git shell 集成; Linux FreeBSD Windows 最后更改:2013-12-10 - v1.2.0 - 错误修复。 ...
FreeBSD源代码树必须位于$SRC_BASE (默认为/usr/src )才能从git构建。 pkg install python36 git-lite py36-cython py36-pip git clone --recursive https://github.com/iocage/iocage 以root身份make install...
(我在freebsd上安装了Dropbox,因为我运行的是nfs home dirs,并且在某些旧版机器上运行了dropbox) 在我的名为3d-recorder的github存储库中可以看到一个使用此配置存储库的演示项目。 makefile.standard包括...
NetworkMgr是用于FreeBSD,GhostBSD,TrueOS和DragonFlyBSD的Python GTK3网络管理器。 NetworkMgr支持netif和OpenRC网络。 安装 要在NetworkMgr之前安装的软件包。 pkg install sudo py37-setuptools py37-gobject3...
使用git命令克隆此存储库并构建/安装atom: git clone https://github.com/tagattie/FreeBSD-Atom cd FreeBSD-Atom/editors/atom make install clean 平台 基于FreeBSD 11和12 amd64构建。 学分 由@ prash-wghats...
git clone https://github.com/tony/i3-gaps-freebsd.git cd i3-gaps-freebsd # one way make WITH=gaps install clean # via option tui make config make install clean 这个回购 为了保留历史记录并合并将来的...
参考在 FreeBSD 上提到 Nix 的博客文章有趣的问题、拉取请求和其他相关工作 Nix 到 pkgsrc 的 WIP 端口: ://wip.pkgsrc.org/cgi-bin/gitweb.cgi p pkgsrc-wip.git;a = tree;f = nix;hb = HEAD ...
注意:目前仅在FreeBSD上编译。入门获取代码git clone https://github.com/danlrobertson/capsicum-rs cd capsicum-rs cargo build使用capsicum-rs编写代码进入功能模式请使用capsicum :: {输入,沙盒}; 使用std :: ...
工作流程基本上是使用 git 向 phabricator 提交补丁,然后使用此工具打开相应的 PR。 请小心确保“--name”参数实际上与端口的类别和目录完全匹配,否则它将无法工作。 警告... FreeBSD 的 SSL 已损坏: ://bugs....
FreeBSD的poudriere的实用程序和包装器。 注意,这是供开发人员和提交者使用的,尽管非技术人员可能也可以使用它。 您不需要已经安装poudriere。 安装: cd ~ git clone git@github....
它至少适用于从 1,2 到 4,2 的 macbookpro(未针对其他型号进行测试。我稍微修改了一下,以使其可用非特权用户并将其从硬件分支移动到开发分支。 安装: 检索文件: git clone ...
GitLab6-on-Freebsd安装指南 本安装指南是针对Freebsd 8.3创建的,并在其中进行了测试。 由于上游不支持FreeBSD,因此它不是用于建立生产服务器的官方安装指南。 要设置开发安装或其他许多安装选项,请查阅。 概述 ...
有关安装和使用的信息,请参见: : 局限性 经过以下操作系统和发行版测试: FreeBSD 12.0+ 硬化的BSD 支持 要获得与CBSD相关的支持,讨论和对话,请加入Telegram CBSD用户组频道:@cbsdofficial 网页链接: : ...
FreeBSD的 OpenSUSE OracleLinux 红色的帽子 科学Linux 赛斯 的Ubuntu 视窗 请您是否在其他平台上成功使用了它。 必读食谱 所需的应用程序 Ruby 1.9.3或更高版本。 属性 属性 默认 描述 node['git-ssh-server']...