{"id":24461956,"url":"https://github.com/daoodaba975/git.jafewoul","last_synced_at":"2025-04-13T05:50:59.404Z","repository":{"id":106800435,"uuid":"477386086","full_name":"daoodaba975/git.jafewoul","owner":"daoodaba975","description":"⚙️ A collection of very useful and little-known Git commands.","archived":false,"fork":false,"pushed_at":"2025-02-19T17:32:21.000Z","size":10,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T22:36:04.048Z","etag":null,"topics":["command","git"],"latest_commit_sha":null,"homepage":"","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/daoodaba975.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["daoodaba975"],"buy_me_a_coffee":"daoodaba975"}},"created_at":"2022-04-03T15:41:03.000Z","updated_at":"2025-03-05T01:05:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"1dd9ad2a-ce68-4de9-8a1b-38e70a9717f3","html_url":"https://github.com/daoodaba975/git.jafewoul","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/daoodaba975%2Fgit.jafewoul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daoodaba975%2Fgit.jafewoul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daoodaba975%2Fgit.jafewoul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daoodaba975%2Fgit.jafewoul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daoodaba975","download_url":"https://codeload.github.com/daoodaba975/git.jafewoul/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670501,"owners_count":21142901,"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":["command","git"],"created_at":"2025-01-21T04:30:22.643Z","updated_at":"2025-04-13T05:50:59.395Z","avatar_url":"https://github.com/daoodaba975.png","language":null,"funding_links":["https://github.com/sponsors/daoodaba975","https://buymeacoffee.com/daoodaba975"],"categories":[],"sub_categories":[],"readme":"# Git Jafewoul ⚙️\n\nA collection of very useful and little-known Git commands.\n\nVersion **FR** 👉🏽 **[here](translate/README-fr.md)**\n\n![Made-In-Senegal](https://github.com/GalsenDev221/made.in.senegal/blob/master/assets/badge.svg)\n\n## Contribute 🤝🏽\n\nAlso want to add a command that you find useful ?  \nFeel free to **[fork](https://github.com/daoodaba975/git.jafewoul/fork)** the project to add your contribution ✨\n\n### Configure your name and email\n\n```properties\ngit config --global user.name \"your_username\"\ngit config --global user.email your_email_address\n```\n\n### Create and switch a branch (one line)\n\n```properties\ngit checkout -b new_branch\n# or\ngit switch -c new_branch\n```\n\n### Delete a branch present on the remote repo\n\n```properties\ngit push origin --delete\n# after\nname_of_my_remote_branch\n```\n\n### Rename an existing branch\n\n```properties\ngit branch -m old_branch new_branch\n```\n\n### Update the local repository of a specific branch\n\n```properties\ngit pull origin my_branch\n```\n\n### Clone a specific branch\n\n```properties\ngit clone -b name_of_my_remote_branch git_project_url\n```\n\n### Edit last commit message\n\n```properties\ngit commit --amend\n```\n\n### Add (forgotten) files to last commit\n\n```properties\ngit add my_file\n# after\ngit commit --amend\n```\n\n### Show all commit information (hash, messages, dates, author)\n\n```properties\ngit log\n```\n\n### Show information about a specific commit count\n\n```properties\n# replace N with the number of commits you want to display\ngit log -N\n```\n\n### Displays a set of commits according to a date slice\n\n```properties\n# date in DD/MM/YYYY format\ngit log --since=date --until=date\n```\n\n### Shows each commit by author (useful on group projects)\n\n```properties\ngit shortlog\n```\n\n### Displays a graphical repository browser\n\n```properties\n# it can be thought of as a GUI wrapper for git log command\ngitk\n```\n\n### Undo last commit (soft)\n\n```properties\n# only the commit is removed from Git, your files remain modified\ngit reset HEAD^\n```\n\n### Undo before last commit\n\n```properties\n# only the commit is removed from Git, your files remain modified\ngit reset HEAD^^\n```\n\n### Undo commits and lose all changes (hard)\n\n```properties\n# this will unconfirm all your work\ngit reset --hard HEAD^\n```\n\n### Search for a specific word or phrase in the files of a Git repository\n\n```properties\n# to search for all occurrences of \"hello\"\ngit grep \"hello\"\n```\n\n### fsck (File System Check) is used to verify the integrity of a Git repository\n\n```properties\n# detects and reports corrupted objects or broken links in the repository\ngit fsck\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaoodaba975%2Fgit.jafewoul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaoodaba975%2Fgit.jafewoul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaoodaba975%2Fgit.jafewoul/lists"}