{"id":21000723,"url":"https://github.com/pbkn/git-apr11","last_synced_at":"2026-04-11T08:42:24.639Z","repository":{"id":172381173,"uuid":"254828511","full_name":"pbkn/Git-Apr11","owner":"pbkn","description":"Git Learn Session","archived":false,"fork":false,"pushed_at":"2020-04-11T09:31:38.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T18:42:14.474Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/pbkn.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":"2020-04-11T08:54:47.000Z","updated_at":"2020-04-11T09:31:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc917bc7-6b37-461f-a27b-4493c835542b","html_url":"https://github.com/pbkn/Git-Apr11","commit_stats":null,"previous_names":["pbkn/git-apr11"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/pbkn/Git-Apr11","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbkn%2FGit-Apr11","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbkn%2FGit-Apr11/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbkn%2FGit-Apr11/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbkn%2FGit-Apr11/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbkn","download_url":"https://codeload.github.com/pbkn/Git-Apr11/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbkn%2FGit-Apr11/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31674624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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:12:03.587Z","updated_at":"2026-04-11T08:42:24.619Z","avatar_url":"https://github.com/pbkn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git-Apr11\nGit Learn Session\n\nGIT :\n\n- IT is a distributed source version control system\n\ncontrol system- git mainly wokrs in content tracker \n\nversion sytsem -\u003e many developer make therir code changes in parallel \nat one specific point , you can make it for relesase ( version ) \n\n\ndistributed version control system -\u003e it can be used in local as well as remote \n\nGIT is open source \n\n-------------------------------------------------\nGIT we have 3 stages \n------------------------\n1. Working area \n2. Staggeing area \n3. Commit History \n\n---------------------------------------------------\nWorking area --\u003e Stagging area -----\u003e Commit History     -----\u003e Github(remote)\n\nLocal Repository \n___________________________________________________\nHands on \n_________________________________________\nStep1 : Create a empty repository in your local machine \n\tgit init \n\nStep 2: Create the file with source code \n\ttouch a.txt\n\nStep 3: vi a.txt -\u003e press insert button for insert mode to write the code \n\nStep 4: Go back to terminal-\u003e esc+:+wq+enter\n\nStep 5: after write the code -\u003e check the status ( git status)\n\tthe file will be in Working area \n\nStep 6: Move the file to stagging area ( git add .)\n\nStep 7: After stagging , you need to commit(permenatly saved)\n\tgit commit -m\"file a.txt created and commit\"\n\nAfter commit will happen \n\ngit create =\u003e 40 digit hashkey (checksum) with the help SHA alg \n\nStep 8: After commiting the file -\u003e git log\n----------------------------------------\nStep 9: open the a.txt and adding some more source code \n\nStep 10:check the git status and git diff( working \u0026 stagging)\n\nStep 11: add the file to satagging area ( git diff --stagged)\n\nStep 12: open the a.txt and add contents \n\nStep 13: if the file not commited - git checkout -- .\n\nStep 14: if the file commited -\u003e git revert hashkey\n\nStep 15: git reset --hard (hashkey-optional)\n\nStep 16: go to Git apr 11 and delete a.txt manually\n\t then it will be in working area -\u003e git add . -\u003e follow step 15\n\nStep 17: go to Git apr 11 and delete using git rm filename \n\t then it will be in stagging area -\u003e follow step 15\n--------------------------------------------------------------------\nRestricting the files\n__________________________\n\nStep 18: Open teh git bash\n\nStep 19: create 3 files  ( a.png ,a.pdf.a.docx)\n\nStep 20: check the git status(it will be in working area) \n\nStep 21:create .gitignore and (restrict the file using *.pdf)\n\nStep 22:git status -\u003e it will restrict and them git add . to the neccessary file \n------------------------------------------------------------------------------Tag \n-----------\nSyntax for creating the file \n---------------------------\nLight weight tag:\ngit tag tagname \n\nAnnotated tag:\ngit tag -a tagname -m\"message\"\n--------------------------------\nSyntax for show the tag name :\n------------------------------\ngit show tagname \ngit show --tags\n\nTo push to remote repository \n--------------------------------\ngit push origin tagname \ngit push --tag\ngit push origin --tags\n\nTo delete the tagname \n-----------------------\ngit tag -d tagname \ngit tag --delete tagname \n\ngit push origin -d tagname \n----------------------------------------------------\nBranching and Merging \n___________________\nTo check the list of branch \ngit branch \n\nTo create the branch \ngit branch brnachname \n\nTo checkout to particular branch \ngit checkout branchname \n\ngit checkout -b branchname\n\nTo merge the branch \ngit merge branchname \n\nTo delete the branch name \ngit -d branchname \n\n\nStep 1: create the branch called develop \nStep 2: switch to your branch \nStep 3: do the changes \nStep 4: commit \nStep 5: checkout to master\nStep 6: Merge \n---------------------------\nPushing to remote repository \n\nStep 1: In github create new repository \nStep 2: In git bash -\u003e git clone https://github.com/admininstrator_name/reponame.git foldername \n\nstep3: DO stagging and commit \nStep 4: git push origin master to push the files to remote repo\n----------------------------------------------------------------------- \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbkn%2Fgit-apr11","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbkn%2Fgit-apr11","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbkn%2Fgit-apr11/lists"}