包含标签 Git articles

Linux安装最新版Git

Linux下安装Git是比较简单的,基本所有的发行版的源里都有git包,通常情况下只需要一条指定就可以完成安装,但在某些情况下我们需要使用Git的新特性,这时候就需要源码包的方式安装最新版本(比如要使用Git的C参数,在不同的目录下执行)。 一、最新版源码安装 在Github,htt……

Continue reading

gitlab的备份、恢复与升级

几乎任何应用系统都规避不开的三个问题:备份、恢复和升级。相对而言来说,gitlab-ce虽然是一个开源免费产品,但在这三方面做的还是比较人性化的。下面逐个介绍。 一、数据备份 先打开/etc/gitlab/gitlab.rb配置文件,查看一个和备份相关的配置项: 1gitlab_rails['backup_path'] = "/var/opt/gitlab/backups" 该项定义了默认备……

Continue reading

omnibus方式安装gitlab-ce私有源

GitLab是利用Ruby on Rails一个开源的版本管理系统,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。omnibus方式即是通过gitlab提供的一个打包好的文件,通过类似一键似的安装来完成gitlab-ce企业私有代码库的安装。这里以cent……

Continue reading

解决git push报错

间隔了一段时间未往gitlab上push文件,近期使用时,发现push时报错,这里记录下解决处理的方法。 错误一: 1[root@361way shell]# git push 2warning: push.default is unset; its implicit value is changing in 3Git 2.0 from 'matching' to 'simple'. To squelch this message 4and maintain the current behavior after the default changes, use: 5 git config --global push.default matching 6To squelch this message and adopt the new behavior now, use: 7 git config --global push.default simple 8See 'git help config' and search for 'push.default' for further information. 9(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode 10'current' instead of 'simple'……

Continue reading

GitBook+Markdown制作精美电子书

一、Gitbook概述 GitBook 是一个基于 Node.js 的命令行工具,可使用 Github/Git 和 Markdown 来制作精美的电子书,GitBook 并非关于 Git 的教程。 GitBook支持输出多种文档格式: 静态站点:GitBook默认输出该种格式,生成的静态站点可直接托管搭载Github Pages服务上; PDF:需要安装gitbook……

Continue reading

git创建、删除库,分支管理

一、创建库 git init 二、创建分支 (打开刚创建的库: cd ) git branch 注:如果创建分支失败,建立一个测试文本文件即可。 git add . git commit -a -m “test” 三、切换分支 git checkout 该语句和上一个语句可以和起来用一个语句表示:git checkout -b 四、查看当前库所有分支 git branch 五、分支合并 比如,如果要将当前的分支develop,合并到……

Continue reading

github上如何删除一个项目(仓库)

登录github页面,打开https://github.com/用户名/项目名,如https://github.com/91it/361way ,打开后,可以在右边栏看到如下页面: 点击settings,跳到如下界面: 点击delete this repository,会跳出输入项目名并确认的过……

Continue reading

Linux下Git和GitHub使用

一、linux上安装git软件 可以直接从发行版本的源里进行安装 1# sudo apt-get install git //ubuntu发行版下 2# yum -y install git //redhat、centos发行版下 二、使用https用户名密码认证连接github 1、在github上创建项目 首先需要从github上申请一个帐号,申请完成后在点击右上角……

Continue reading

github for windows的使用

虽然有自己的blog很久了,不过以前写的很多脚本,总是因为这样或那样的原因没弄到blog平台上 。而回头想复用这些脚本时,在本地disk上发现又找不到或者年久丢失了 。这便萌生了使用github存放脚本的想法。 局限于办公环境是使用的win主机,所以写从github for windows入手……

Continue reading

centos下git的安装

Git是一个区别与CVS, Subversion的开源分布式版本控制系统,用以有效、高速的处理从很小到非常大的项目版本管理。在大多数的LINUX/unix发行版(或源)中,都包含有git包。不过在一些老版本的系统中并不包含git安装包。例如不算很老的centos 5.X中就没有git……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS Duckdb EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta