win8承载了微软太多的期望,希望以此来一统桌面PC和移动手机市场,也弄出了很多的动静和噱头。正好同事下载了win8RC于是就用虚拟机VMware尝尝鲜。
安装中并没有让我产生第一次装win7时的那种震撼和惊艳,进去了是早有耳闻的方块元素,默认壁纸也没有win7的耐看。(win7默认壁纸到现在也没换过)
试用了30分钟实在没有用下去的想法,UI做如此大的变革实在是一件风险极大的事情,可以说是一种强X用户习惯和体验之举,比如没有开始菜单就让我极其反感。
强烈感觉NOKIA这么一个伟大的手机公司被微软坑了,就metro这德性,NOKIA振兴的那天估计是很难看到了。
扯远了,有了VMware我也顺便装了一个最新的ubuntu 12.04,第一感觉又是习惯被强X了,你大爷的Unity,做的都没360桌面好看,你大爷的要求我换那些用习惯了工具,搜了网上一坨人也在抱怨,解决方案是自己安装Gnome,可是只能装Gnome3,但这货菜单条又缺少网络链接和登出选项,不想折腾了,果断装回了Ubuntu10.10.(我同事也因为类似原因改用linuxMint了)。重配Git环境遇到了一些问题,稍作记录吧。
说明:以下内容绝大部分来自于:github.com。
1,下载git
$ apt-get install git-core
2,配置个人信息(非必须)。
git config --global user.name "Your Name Here"
git config --global user.email "your_email@youremail.com"
3,设置密码缓存时间
/**To use this option, you need to tur
*n on the credential helper so that git
*will save your password in memory f*or some time:
*/
git config --global credential.helper cache
# Set git to use the credential memory cache
//By default git will cache your password for 15 minutes. You can change this if you like.
git config --global credential.helper 'cache --timeout=3600'
# Set the cache to timeout after 1 hour (setting is in seconds)
4,配置远程github库ssh密码
First, we need to check for existing ssh keys on your computer. Open up Git Bash and run:
cd ~/.ssh
# Checks to see if there is a directory named ".ssh" in your user directory
Since there is already an SSH directory you'll want to back the old one up and remove it:
ls
# Lists all the subdirectories in the current directory
# config id_rsa id_rsa.pub known_hosts
mkdir key_backup
# Makes a subdirectory called "key_backup" in the current directory
cp id_rsa* key_backup
# Copies the id_rsa keypair into key_backup
rm id_rsa*
# Deletes the id_rsa keypair
To generate a new SSH key, enter the code below. We want the default settings so when asked to enter a file in which to save the key, just press enter.
ssh-keygen -t rsa -C "your_email@youremail.com"
# Creates a new ssh key using the provided email
# Generating public/private rsa key pair.
# Enter file in which to save the key (/c/Users/you/.ssh/id_rsa): [Press enter]
Now you need to enter a passphrase.
Why do passphrases matter?
# Enter passphrase (empty for no passphrase): [Type a passphrase]
# Enter same passphrase again: [Type passphrase again]
Which should give you something like this:
# Your identification has been saved in /c/Users/you/.ssh/id_rsa.
# Your public key has been saved in /c/Users/you/.ssh/id_rsa.pub.
# The key fingerprint is:
# 01:0f:f4:3b:ca:85:d6:17:a1:7d:f0:68:9d:f0:a2:db your_email@youremail.com
Step 4: Add your SSH key to GitHub
Run the following code to copy the key to your clipboard.
clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard
Be warned: it is important to copy the key exactly without adding newlines or whitespace. Thankfully the clip command makes it easy to perform this setup perfectly.
Go to your Account Settings
Click "SSH Keys" in the left sidebar
Click "Add SSH key"
Paste your key into the "Key" field
Click "Add key"
Confirm the action by entering your GitHub password
5,建立一个本地代码库
Step 1: Create the README file
In the prompt, type the following code:
mkdir ~/Hello-World
# Creates a directory for your project called "Hello-World" in your user directory
cd ~/Hello-World
# Changes the current working directory to your newly created directory
git init
# Sets up the necessary Git files
# Initialized empty Git repository in /Users/you/Hello-World/.git/
touch README
# Creates a file called "README" in your Hello-World directory
Step 2: Commit your README
Now that you have your README set up, it's time to commit it. A commit is essentially a snapshot of all the files in your project at a particular point in time. In the prompt, type the following code:
More about commits
git add README
# Stages your README file, adding it to the list of files to be committed
git commit -m 'first commit'
# Commits your files, adding the message "first commit"
Step 3: Push your commit
So far everything you've done has been in your local repository, meaning you still haven't done anything on GitHub yet. To connect your local repository to your GitHub account, you will need to set a remote for your repo and push your commits to it:
More about remotes
git remote add origin https://github.com/username/Hello-World.git
# Creates a remote named "origin" pointing at your GitHub repo
git push origin master
# Sends your commits in the "master" branch to GitHub
6,git 命令无法自动补全解决方法:
参见以下博客:ClickMe!
补充:因为VMware是要收费的,费用也很高,所以换开源的virtualBox了,挺好用的,就是分辨率上遇到些问题,装上拓展包后就基本解决了:
sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms
相关推荐
(使用--prefix参数指定Git的安装路径,git默认的命令都安装在/usr/local/bin目录下,因此如果这里指定的目录非/usr/local/那么如果不设置相应的环境变量git将不可用。因此,尽量指定这个安装路径)
1.检查git是否安装 终端下输入”git”,查看提示: usage: git [--version] [--help] [-C ] [-c =] [--exec-path[=]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-...
3.1 在Linux 下安装和使用 Git/ 22 3.1.1 包管理器方式安装/ 22 3.1.2 从源代码进行安装/ 23 3.1.3 从Git版本库进行安装/ 23 3.1.4 命令补齐/ 25 3.1.5 中文支持/ 25 3.2 在Mac OS X 下安装和使用 Git/ 26 3.2.1 以...
并更新了depends,方便minmal安装的linux。本人在centos6、7下均测试通过。 【说明】 #tar -xvf build_ffmpeg-3.3git.tar.gz //解压 #cd ffmpeg.3.3git #./build_ffmpeg.sh 为了防止和yum安装的ffmpeg或其它组件...
WSL2-Ubuntu20.04配置了xfce4图形化界面后进一步的操作: 部分软件安装,桌面美化,中文环境配置,第三方源的处理,终端和git代理配置
这个手册详细的介绍了在linux环境下配置git,从初始化,到克隆分支和提交修改等步骤,以及冲突解决到最后的提交过程,适合初学者参考。
gerrit依赖,用于安装gerrit环境。 下载:jdk-8u181-linux-x64.tar.gz http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 安装:sudo tar zxvf ./jdk-8u181-linux-x64.tar.gz -...
脚本运行环境:Linux,Windows(git bash中运行) 项目创建Develop分支来储存开发代码,master分支来储存当前代码,每个成员创建自己的个人分支。 在自己个人分支上开发,在自己分支-bugfix分支上修改bug。 快捷键...
3. docker 安装与配置 4. 防火墙管理 5. 系统信息 6. 安装 PostgreSQL 13 并添加 PostGis 3.1 7. 用户和组 8. jdk 安装与配置 9. redis 安装与配置 10. 花生壳安装与配置 11. podman 安装与配置 12. nginx 安装与...
- 学会在Linux环境下配置安装hexo及GitHub - 学会使用hexo进行搭建网页 - 掌握对网站的更新 - 充分调试并使其能在Linux环境下运行 # **实验环境** ## Linux操作系统 # **有关工具** ## Hexo + GitHub # **实验...
JavaEE学习日志持续更新—-> 必看!JavaEE学习路线(文章总汇) JavaEE学习日志(七十八)LinuxLinux安装jdkLinux安装MySQLLinux安装tomcatLinux安装RedisLinux部署商城...配置环境变量 通过vim编辑器,编辑etc下的prof
jenkins自动化环境搭建,配置 1:jdk安装 2:maven安装配置 3:git安装 4:docker安装,docker私服搭建 5:Jenkins安装配置
Git环境配置 点击打开 git官网,下载git对应操作系统的版本。 所有东西下载慢的话就可以去找镜像! 官网下载太慢,我们可以使用淘宝镜像下载:点击打开 这里以淘宝镜像为例: 拉到最下面,找到最新版,点击进去! ...
AudioResamplerate 是一款 LInux 下的音频重采样工具,支持 PCM 和 WAV 音频。组件:log:print verbose / info / ...安装$ git clone git@github.com:AnSwErYWJ/AudioResamplerate.git环境LinuxPOSIX CBash Shell
本工具会自动设置Git版本控制环境,并跨平台支持Windows,Linux,macOS等作业系统的命令列环境,尤其是针对中文环境经常会出现乱码的问题都会完整的解决方案。 先决条件 10.13.0以上版本 任意版本(建议升级到最新...
3.1.4. git客户端安装配置 9 3.1.5. svn客户端安装配置 11 3.2. 插件配置 12 3.2.1. 直接安装 12 3.2.2. 手动安装 14 3.3. 用户与权限配置 15 3.3.1. 用户管理 15 3.3.2. 权限管理 18 4. Harbor安装与配置(可选) ...
步骤一:Kali Linux环境配置 Kali linux虚拟机安装OpenPLC,在终端输入 git clone /thiagoralves/OpenPLC_v3.git,安装完成之后的页面如下图所示: 图1安装OpenPLC 安装之后,切换到openplc目录下,启动安装程序,在...
linux常用命令大全 1.Linux管理文件和目录的命令 命令 功能 命令 功能 Pwd 显示当前目录 ls 查看目录下的内容 Cd 改变所在目录 cat 显示文件的内容 Grep 在文件中查找某字符 cp 复制文件 Touch 创建文件 mv 移动...
A set of vim, zsh, git, and tmux configuration files.(*nix开发环境一键配置)
文档内容包括Windows和Linux下 应用详细配置。 windows下包括 jdk,tomcat,redis, mysql, navicat, powerDesigner,git 安装配置,linux下包括jdk,tomcat, mysql, redis ,nginx 安装配置