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 eluilan:[email protected]:8080
git config--global https.proxy eluilan:[email protected]:8080
#git Config--global http.sslverify false
4.git branch-a to list all the branches, normally we is working in the Origin/master branch, so direclty add/change file S
5. Git add command to track your changes in local repo
WARNING:LF is replaced by CRLF in Src/main/webapp/web-inf/web.xml.
In Unix systems, the end of a line are represented with a line feed (LF). In Windows A, represented with a carriage return (CR) and a line feed (LF) thus (CRLF). When you get the code from git this is uploaded from a Unix system they would only has a LF.
6. Git status/gitk to check your changes, git commit to local repo
Note:create Mode 100644
The following flags is 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 to others (not in group)
S_iroth 00004 Others has Read permission
S_iwoth 00002 others have write permission
S_ixoth 00001 others have execute permission
7. Git pull origin Master to merge changes if require (git stash/stash pop, git reset--hard)
8. 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]