{"id":16010412,"url":"https://github.com/shivajivarma/git","last_synced_at":"2025-04-05T02:40:58.280Z","repository":{"id":152086891,"uuid":"81637611","full_name":"shivajivarma/git","owner":"shivajivarma","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-03T07:08:25.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T10:52:42.924Z","etag":null,"topics":["git"],"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/shivajivarma.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":"2017-02-11T07:19:24.000Z","updated_at":"2023-08-03T07:08:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"07c95bf9-6526-474b-a390-435a0d3be0a5","html_url":"https://github.com/shivajivarma/git","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/shivajivarma%2Fgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivajivarma%2Fgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivajivarma%2Fgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivajivarma%2Fgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivajivarma","download_url":"https://codeload.github.com/shivajivarma/git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280176,"owners_count":20912965,"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":["git"],"created_at":"2024-10-08T13:05:42.714Z","updated_at":"2025-04-05T02:40:58.262Z","avatar_url":"https://github.com/shivajivarma.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# git\n\n\n## Configure mergetool\n```bash\ngit config --global --add merge.tool kdiff3  \ngit config --global --add mergetool.kdiff3.path \"C:/Program Files/KDiff3/kdiff3.exe\"  \ngit config --global --add mergetool.kdiff3.trustExitCode false\n\ngit config --global --add diff.guitool kdiff3  \ngit config --global --add difftool.kdiff3.path \"C:/Program Files/KDiff3/kdiff3.exe\"  \ngit config --global --add difftool.kdiff3.trustExitCode false\n```\n\n\n## Remember password for git\n### Ubuntu\n```bash\ngit config --global credential.helper cache\n```\n\n### Windows\n```bash\ngit config --global credential.helper wincred\n```\n\n## Revert local commit without lossing changes\n```bash\ngit reset --soft HEAD~1\n```\n## Delete local GIT branches that were deleted on remote repository\n```bash\ngit fetch --all\ngit branch -vv | grep ': gone]'|  grep -v \"\\*\" | awk '{ print $1; }' | xargs git branch -d\n```\n\n__Note: You can use a capital “D” instead of “d” to force delete__\n\n## Git checkout file from specific branch or commit\n```bash\ngit checkout origin/master -- src\\folder\\file-name.js\n```\n\n## NPM version sign git tags\n```bash\nnpm config set sign-git-tag true\nnpm version patch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivajivarma%2Fgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivajivarma%2Fgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivajivarma%2Fgit/lists"}