{"id":21004723,"url":"https://github.com/flaque/git-tut","last_synced_at":"2026-01-29T09:06:50.981Z","repository":{"id":80716007,"uuid":"135360324","full_name":"Flaque/git-tut","owner":"Flaque","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-30T01:13:30.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T10:13:59.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flaque.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-29T22:46:55.000Z","updated_at":"2018-05-30T01:13:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf1385b1-2b10-4763-a77c-dae4f701ccd1","html_url":"https://github.com/Flaque/git-tut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgit-tut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgit-tut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgit-tut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fgit-tut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flaque","download_url":"https://codeload.github.com/Flaque/git-tut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243419503,"owners_count":20287900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T08:37:36.410Z","updated_at":"2026-01-29T09:06:45.900Z","avatar_url":"https://github.com/Flaque.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git\nJUDY has edited the file \n```\nThis is fun, LRO\n _______  ___  _______               \n|       ||   ||       |              \n|    ___||   ||_     _|              \n|   | __ |   |  |   |                \n|   ||  ||   |  |   |                \n|   |_| ||   |  |   |                \n|_______||___|  |___|                \n ___  _______                        \n|   ||       |                       \n|   ||_     _|                       \n|   |  |   |                         \n|   |  |   |                         \n|   |  |   |                         \n|___|  |___|                         \n _______  __   __  ______    ___     \n|       ||  | |  ||    _ |  |   |    \n|    ___||  | |  ||   | ||  |   |    \n|   | __ |  |_|  ||   |_||_ |   |    \n|   ||  ||       ||    __  ||   |___ \n|   |_| ||       ||   |  | ||       |\n|_______||_______||___|  |_||_______|\n\n`~`~`~`~`~`~\n\nToday we're talking about Git. Git's a tool for sharing code. It's used by *real* industry peoples \nand is the most common tool of its genre.\n\nYou may have heard of Git refered to as \"source control.\" That's because git lets you store several \nversions of your code all at once. \n\n## Prereq: The command line\n\nAlthough Git does have a GUI, it's generally not a good idea to learn it through the GUI. It's very \ndifficult to understand what Git's doing without the shell.\n\nThat said, you don't need much command line experience. If you know the following commands, you \nshould be good:\n\n```bash \ncd    # \"Change Directory\"\nmkdir # \"Make Directory\"\ntouch # makes a new file\nls    # Shows the files in the current directory\n```\n\n## Activity Steps\n\nIn case you get lost, our activity for today is repeated here.\n\n### Part 1: A Local Repository\nThis section has nothing to do with Github yet. We're gonna do everything locally.\n\n#### Step 1: Making your own repository\n\nYour goal for this step is to create a new directory, then use `git init` inside that directory\nto create your own git project. \n\n#### Step 2: Add your files\n\nNext, you should create a file that we'll use for our dummy project. If you want, it can be a .java file.\nIt doesn't need to be correct code. It could also just be a .txt file.\n\nThen, you'll want to `add` it to your current \"staging\" environment.\n\n#### Step 3: Create a commit \n\nNext, you'll want to `commit` the things you've added. Then use `status` to check if everyone went okay.\n\n### Part 2: Putting it on the internet\n\n#### Step 1: A new Github repository\n\nOn Github, click the \"plus\" in the top right corner and create \"new respository.\" You can leave most things the default.\n\nThen, use the commands from \"push an existing repository\" to push up what you made.\n\n#### Step 2: Another Commit\n\nMake some changes to your file, add them and commit them. Then use `push` to send them to the internet repository! \n\n----------\n\n## Reference\n\nThe following is a list of commands we'll be doing today in Git.\n\n```bash \ngit status # Tells you the current items in and out of your \"staging\" environment.\ngit init # Turns the current directory into a git repository\ngit add \u003csome_file_path_here\u003e # Adds a file to your \"staging\" environment (your box!)\ngit rm \u003csome_file_path_here\u003e  # Removes a file from your \"staging\"\ngit commit -m \"message here\"  # Wraps up your staging environment into a \"commit\"\ngit pull # Pulls the repository down from the internet\ngit push # Pushes your repository up to the internet\ngit clone \u003curl_here\u003e # Creates a copy of a repository on the internet\n```\n\nAlso, just in case you need it: \n\n### How to exit vim\n\nFirst, press escape. Then press \":\", then write \":wq\". If you messed up at some point, \nyou may need to redo your commit command.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fgit-tut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaque%2Fgit-tut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fgit-tut/lists"}