What if I'm working together with some other developers on a feature? How will we keep our work separate until it is finished?Ĭreate a git repo echo "Sweet beast yowling nonstop the whole night or lie on your belly and purr when you are asleep yet scratch at fleas, meow until belly rubs, hide behind curtain when vacuum cleaner is on scratch strangers and poo on owners food unwrap toilet paper.What if I'm working on a team and everyone is working on their own feature? How will we keep our work separate until it is finished?.What if I'm working on a feature and I want to try something out? Will I be able to cleanly remove that work if I decide I don't want to keep it?.Git has a couple of other really powerful features that we'll discuss today. We've learned about the ability to keep track of changes to our code using staging and committing, how to work with others using forks and pull requests. > `$ git pull ` - update a local repo with commits from a branch of a remote repoĪs we discussed before, Git is a very powerful version control and collaboration tool. > `$ git push ` - update a remote repo with commits from a branch of a local repo > `$ git remote add ` - add a remote repo with a given name and url What commands are used to share changes (commits) between local and remote repos? > A clone is when you download a remote repository (likely from GitHub) to your local file system.Ĥ. > A fork is when you copy a repository on GitHub to your own GitHub account. What's the difference between a fork and a clone? > `$ git commit -m "message"` - commit staged filesģ. > `$ git add ` - stage file(s) for commit > `$ git init` - create an empty Git repo What command is used to start tracking a directory? What commands record the changes that occurred in the tracked directory? > **GitHub** is a web application that hosts remote repositories and allows developers to easily host and share code.Ģ. > **Git** is a version control system allowing us to easily track files, manage changes and move between versions. What is the purpose of git? How does it differ from GitHub? Describe Github Workflow using issues, branches, and pull-requests.Describe how branching and merging allows for collaboration during development.Create, merge, and delete branches on local and remote repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |