How to set up your git workflow

git clone <paste>
YOU-MBP:~ YOU-Name$ cd YourProject/
Scotts-MBP:akin scottlydon$ git remote rename <old-name> <new-name>
Scotts-MBP:akin scottlydon$ git remote -v 
origin https://github.com/ElevatedUnderdogs/akin.git (fetch)
origin https://github.com/ElevatedUnderdogs/akin.git (push)
Scotts-MBP:akin scottlydon$ git remote rename origin upstreamScotts-MBP:akin scottlydon$ git remote -v
upstream https://github.com/ElevatedUnderdogs/akin.git (fetch)
upstream https://github.com/ElevatedUnderdogs/akin.git (push)
Scotts-MBP:akin scottlydon$ git remote add origin https://github.com/scott-lydon/akin-1.gitScotts-MBP:akin scottlydon$ git remote -v
origin https://github.com/scott-lydon/akin-1.git (fetch)
origin https://github.com/scott-lydon/akin-1.git (push)
upstream https://github.com/ElevatedUnderdogs/akin.git (fetch)
upstream https://github.com/ElevatedUnderdogs/akin.git (push)
click “create branch”
git fetch upstream
git branch
*master
git checkout -b develop upstream/develop
git checkout master
git branch -d <yourUnwantedBranch>
git checkout -b develop upstream/develop
git push origin branchName

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Practical Tradeoffs in Google Cloud Spanner, Azure Cosmos DB and YugaByte DB

RxSwift x Firestore

How to Install Python and Jupyter Notebook on Windows 10

Mvc Core Part 4- Creating Controller, View, Posting data from View to server

HTTP/2 — The Future Of The Internet?

Wherever you are in life, and based on who is around you and based on your current aspirations

What do black swans, in ICT systems, events, and psychology have in common?

Making a commit for your GitHub repo using Git Bash

Pull → Add & Commit → Push → Work → Repeat

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Scott

Scott

More from Medium

Push multiple files under a single commit through GitHub API

Git (viewing the commit history)

Getting Started with unittest in Python

Use Git to fork, clone, edit and make a pull request