Setup GIT

Setup GIT

David Cruwys Procedures, Yippit Leave a Comment

[s2If current_user_can(access_s2member_level1)] [_s2If current_user_can(access_s2member_ccap_reserved)]

How to Setup GIT on a developer machine for Reservd

Store Credentials Locally

wpid1247-media_1396656291421.png

If you would like to store credentials locally so that you don’t have to use them every time you Pull from Git.

We can use this command to store credentials.

  • git config credential.helper store

NOTE: You need to use that command before you enter host password.

More info in here: git-scm.com/docs/git-credential-store.html

  1. Run credential storage (nothing seems to happen, but it will record the next password used)
  2. Run Git Pull, it will ask for a password, type it in
  3. Next time you do a Git Pull, it will NOT ask for the password

Configure your user name & email

wpid1242-Configure_your_user_name___email.png

Get GIT repository from command line

wpid1243-Get_GIT_repository_from_command_line.png

C:\windows\system32\cmd.exe

git clone https://yippit@bitbucket.org/alterset/rsvd.git
 

Pull latest code from command line

wpid1246-Pull_latest_code_from_command_line.png

git pull

Add files to repostiory

wpid1239-Add_files_to_repostiory.png

GIT add .

Check status of files

wpid1240-Check_status_of_files.png

GIT status

Commit Locally

wpid1241-Commit_Locally.png

Push to Server

Push_to_Server.png

git push origin master

http://stackoverflow.com/questions/7047752/git-adding-files-to-repo

wpid1244-httpstackoverflow.comquestions7047752git-adding-files-to-.png
wpid1245-media_1397538123482.png

Get code down to a machine
Go to resvd/www/public/offer/test.html
Push (multi – step) to Stagig
Log onto Staging using Putty
* Somewhere in here is a backup procedure
Pull down to staging
test dev.reservd.com.au/offer/test.html

Do the same for Production

Repeat on both SCOTT & 3r1 (you can get a Teamviewer login from me)


[/_s2If] [/s2If] [s2If !current_user_can(access_s2member_ccap_reserved)]

No Access!
You don’t have privilege to access this content. Please contact the administrator.
[/s2If]
David CruwysSetup GIT

Leave a Reply