1. create a new accout, create orginazation, create repo

2. install git in your local pc

Note: you can create ssh key to avoid username/password input for github operation

https://help.github.com/articles/generating-ssh-keys

https://help.github.com/articles/set-up-git

3. git clone https://github.com/elulian/CustomerSecurityManagementSystem.git

Note: failed to connect to github 443 windows/ Failed to connect to gitHub - No Error

check your git proxy setting:

git config --global http.proxy



Reset git proxy setting:

git config --global --unset http.proxy



set git proxy:

git config --global http.proxy ***@****:8080

git config --global https.proxy ****@****:8080

#git config --global http.sslverify false



4.git branch -a to list all the branches, normally we are working in the origin/master branch, so direclty add/change files

5. If you are using eclipse, you can simple use eclipse git gui, my suggestion, if you want to use git bash, you can use below commands:

5.1 git add command to track your changes in local repo

warning: LF will be replaced by CRLF in src/main/webapp/WEB-INF/web.xml.

In Unix systems the end of a line is represented with a line feed (LF). In windows a line is represented with a carriage return (CR) and a line feed (LF) thus (CRLF). when you get code from git that was uploaded from a unix system they will only have a LF.



5.2. git status/gitk to check your changes, git commit to local repo

Note: create mode 100644

The following flags are defined for the st_mode field:



       S_IFMT     0170000   bit mask for the file type bit fields

       S_IFSOCK   0140000   socket

       S_IFLNK    0120000   symbolic link

       S_IFREG    0100000   regular file

       S_IFBLK    0060000   block device

       S_IFDIR    0040000   directory

       S_IFCHR    0020000   character device

       S_IFIFO    0010000   FIFO

       S_ISUID    0004000   set UID bit

       S_ISGID    0002000   set-group-ID bit (see below)

       S_ISVTX    0001000   sticky bit (see below)

       S_IRWXU    00700     mask for file owner permissions

       S_IRUSR    00400     owner has read permission

       S_IWUSR    00200     owner has write permission

       S_IXUSR    00100     owner has execute permission

       S_IRWXG    00070     mask for group permissions

       S_IRGRP    00040     group has read permission

       S_IWGRP    00020     group has write permission

       S_IXGRP    00010     group has execute permission

       S_IRWXO    00007     mask for permissions for others (not in group)

       S_IROTH    00004     others have read permission



       S_IWOTH    00002     others have write permission

       S_IXOTH    00001     others have execute permission

5.3. git pull origin master to merge changes if require (git stash/stash pop, git reset --hard)

Note: for code merge, I am using kdiff3:

a. install kdf

b. git config --global merge.tool kdiff3

c. git config --global mergetool.kdiff3.cmd '"(kdiff3 installation path (C:\\Program Files (x86)\\KDiff3\\kdiff3)" $BASE $LOCAL $REMOTE -o $MERGED'

d. git mergetool

5.4. git push origin master to remote repo

Note: username/password: your github username/password

git config --global user.name [your github username]

git config --global user.password [your github password]

版权声明:本文博主原创文章,博客,未经同意不得转载。

github basic usage in windows的更多相关文章

  1. zookeeper kazoo Basic Usage

    http://kazoo.readthedocs.org/en/latest/basic_usage.html Basic Usage Connection Handling To begin usi ...

  2. [TensorFlow] Basic Usage

    Install TensorFlow on mac Install pip # Mac OS X $ sudo easy_install pip $ sudo easy_install --upgra ...

  3. 最新GitHub新手使用教程(Windows Git从安装到使用)——详细图解

    说明:该篇博客是博主一字一码编写的,实属不易,请尊重原创,谢谢大家! 一.叙述 1.Git简介 Git(读音为/gɪt/.)是一个开源的分布式版本控制系统,可以有效.高速地处理从很小到非常大的项目版本 ...

  4. github 's usage

    author:headsen  chen date: 2018-05-30   10:50:56 notice:This  article is created by headsen chen him ...

  5. 【C++/C】指针基本用法简介-A Summary of basic usage of Pointers.

    基于谭浩强老师<C++程序设计(第三版)>做简要Summary.(2019-07-24) 一.数组与指针 1. 指针数组 一个数组,其元素均为指针类型数据,该数组称为指针数组.(type_ ...

  6. python Basic usage

    __author__ = 'student' l=[] l=list('yaoxiaohua') print l print l[0:2] l=list('abc') print l*3 l.appe ...

  7. Adding basic files · lcobucci/jwt@aad22ed · GitHub

    Skip to content   Features Business Explore Marketplace Pricing   This repository Sign in or Sign up ...

  8. Windows 上 GitHub Desktop 的操作[转]

    第1章 上传开源代码至GitHub    1 1.1 git Windows 客户端    1 1.2 注册GitHub账户    2 1.3 登录    2 1.4 创建本地代码仓库    2 1. ...

  9. Windows 上 GitHub Desktop 的操作

    目 录 第1章 上传开源代码至GitHub    1 1.1 git Windows 客户端    1 1.2 注册GitHub账户    2 1.3 登录    2 1.4 创建本地代码仓库     ...

随机推荐

  1. 2014百度之星预赛(第二场)——Best Financing

    2014百度之星预赛(第二场)--Best Financing Problem Description 小A想通过合理投资银行理財产品达到收益最大化.已知小A在未来一段时间中的收入情况,描写叙述为两个 ...

  2. VisualStudioOnline协同工作流程

    VisualStudioOnline协同工作流程 项目负责人登陆自己的vsonline新建项目就不多说了. 直接从邀请队友开始 项目负责人操作 被邀请的邮箱必须是微软的邮箱(也就是可以登录visual ...

  3. 类似的微博推断客户关系sql声明

    类别似新浪微博的关注和共同关心 不知道别人是怎么设计的. 反正我是例如以下设计的 ID   USER   FRIEND 1     A         B 2      B         A 3   ...

  4. 阿里云OSS Multipart Upload上传实例

    原来是用的PutObject()方式上传文件的,但是当文件比较大的时候,总是报一个对方强制关闭连接导致上传失败.PS:公司的网比较渣,10MB的文件都传不上去,搜了下,说使用Multipart Upl ...

  5. Eclipse build launcher 3具体步骤

    1. 下载launcher 3源代码  (需要FQ) git clone https://android.googlesource.com/platform/packages/apps/Launche ...

  6. EF操作sqlite数据库时的项目兼容性问题

    问题:vs2015打不开vs2010建的操作sqlite的实体数据模型edmx文件 原因: 当前电脑必须先安装:驱动库及sqlite的vs拓展 正常情况下安装驱动和拓展后,vs2015就应该可以正常打 ...

  7. Fiddler工具的基本功能(转)

    Fiddler是一款用于网页数据分析,抓取的工具,里面集成了对网页强大的功能外,还可以通过设置,使其对手机的数据也可以进行抓取 Fiddler的原理是: 通过在客户端和服务器之间创建一个代理服务器来对 ...

  8. PHP 闭包函数 function use 使用方法实例

    /** * @param string $hisStart * @param string $hisEnd * @param int $range * @param string $format * ...

  9. CPU 风扇清理灰尘加油全过程图解

    主机电源风扇因为使用时间长,风扇轴承的润滑油耗尽,导致风扇转速下降或是不转,引起电源热量无法有效排除而造成电脑常常死机,解决的方法有几种. 现图讲解明最简单省钱的办法例如以下: 1.把电源从主机上拆下 ...

  10. Hadoop2.3.0具体安装过程

    前言:       Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS.HDFS有高容错性的特点,并且设计用来部署在低廉的(low-co ...