-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about Git commands #6
Comments
Here's a survey of what to do to set up GitHub on your computer, as well as store, access, and push your files to your repository: I switched from a PC to a Mac a while ago, and had to access my old GitHub repositories on a new computer. I cloned my repositories inside the Mac command line terminal, and I configured my GitHub account there, too, in a few careful but quick steps. Here's the Mac-specific documentation I followed, which is really close to what you'd do on a PC in the Git Bash shell. But I think this tutorial for Mac is better because it explains how to complete the installation. The git commands are ALL the same in both environments. The key thing to me in working with GitHub is that I always need to know where to find my files in the Finder and in the Terminal. So I need to save them in a place where I can easily see them.
I hit enter, and watch the lines scroll away in the command line terminal as the repository clones itself on my local computer inside my GitHub directory.
Then to pull in any changes from the remote "mothership" repo, I type:
The period means all-- add all new files to be tracked by Git.
And gears turn and lines of text whirl on the screen, and my file goes up into the remote Mothership repo! I always check on the web repository to see if my commit went through. That's how I do it. |
And if you ever don't know what to type, try:
|
What are the GitHub commands we need to use to push our code to our GitHub repositories?
The text was updated successfully, but these errors were encountered: