Open
Conversation
added 2 commits
October 28, 2021 14:01
…e repo by pasting the url that I forked from GitHub aka pulling files/cloning down to my laptop. then you cd change directory to the name that appear after CLONING INTO by typing cd NAME/ and press enter. so now we'll be in the master branch. we want to make our own branch, so we type git checkout -b which makes a branch name to use. so now we're in this branch. now we open VS code from the terminal by typing code . -- then I added my name and saved the file. then i went back to the terminal and typed git status which will tell me that a file was modified on VS code. now we want to PUSH the change back UP to the remote repo with git add . -- this will add the changes. type git status and make sure the file u edited is STAGED. and then I could type git commit -m -- type message to explain like i am here, press enter, and then it'll say file changed. now we're gonna PUSH the changes back UP with git push -u origin [branch name, which was Victoria-B in this ex]. this command creates the branch REMOTELY then it pushes to it. I had to make a token and add it in bc it wouldn't let me push the changes back up. I'll have to make a new token link in 90 days. so now when we go to github on the forked link that I used, it'll say that there was a recent push. I refreshed the screen, clicked master, and saw my branch name. If i scroll down, i'll see what I edited. Now i'll create a PULL REQUEST by clicking it on the page, changing the base repo to mine, which was Victoria-B/Git-Flow-Practice, and it'll basically compare my branch to the master branch. then I clicked CREATE PULL REQUEST. the link on the page that loads is the URL to the pull request.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.