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. EasyUI实战经验总结(转)

    最近公司培训EasyUI,就做下总结吧,给有需要的人,源码在文章最后. 1.最常用的表格 ? 1 2 3 <div class="easyui-panel" data-opt ...

  2. ZOJ 2412 Farm Irrigation(DFS 条件通讯块)

    意甲冠军  两个农田管内可直接连接到壳体  他们将能够共享一个水源   有11种农田  管道的位置高于一定  一个农田矩阵  问至少须要多少水源 DFS的连通块问题  两个相邻农田的管道能够直接连接的 ...

  3. GDI+ 两个汇总 : 为什么CImage类别是根据GDI+的?

    在很多资料上都说CImage类是基于GDI+的,可是为什么是基于GDI+的呢? 由于使用这个类时,并没有增加#include <gdiplus.h> .也没有在程序開始和结束时分别写GDI ...

  4. 第三章_JSP

    3.1.JSP概述 Jsp页面实在jsp容器中执行的.Servlet容器一般也是JSP容器.比如,Tomcat就是一个Servlet/JSP容器. 第一次请求一个jsp页面时,Servlet/JSP容 ...

  5. Socket连接超时(转)

    Socket.connect连接超时有二种情况: 1.由于网络的问题,TCP/IP三次握手时间>timeout的设置时间.这在国外访问weibo时,并且网络环境极差的情况下有可能发生.解决的办法 ...

  6. Android应用启动还有一个应用

    已知包名和应用入口Activity 包名:org.ww 应用入口:Activity:org.ww.TestActivity Intent intent = new Intent(); intent.s ...

  7. 第一pga 畸形消费分析

     第一pga 畸形消费分析 os: aix 6 db:10205 ------使用os 命令观察oracle 存消耗情况 #ps gv ......                         ...

  8. Windows store 验证你的 URL http:// 和 https:// ms-appx:/// ms-appdata:///local

    前缀 使用 注意事项 http:// 和 https:// 联机存储的图像 这些图像可能缓存在本地,因此图像服务器可能未收到图像的请求.可以在这些 URL 中附加查询字符串.确保 Web 服务器返回原 ...

  9. 他们控制的定义-DragButton

    一个.叙述性说明 可拖动Button 两.无图无真相 这是用在实际工程效果图.和demo不太一样. 三.源代码 https://github.com/mentor811/Demo_DragButton ...

  10. 恢复Ubuntu引导菜单

    介绍 当使用双系统,我们经常重Windows! 有没有一种方法:刚刚重装Windows而不重装Ubuntu呢? 在使用Win XP/Ubuntu双系统时.这个问题非常好解决!可是在使用Win7(包括V ...