Skip to content

janviaroraa/Github-Commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

58c99e7 ยท May 27, 2024

History

2 Commits
May 27, 2024
May 27, 2024

Repository files navigation

Github Commands

  1. ๐—ด๐—ถ๐˜ ๐—ถ๐—ป๐—ถ๐˜: Initializes a new Git repository in the current directory.
  2. ๐—ด๐—ถ๐˜ ๐—ฐ๐—น๐—ผ๐—ป๐—ฒ [๐˜‚๐—ฟ๐—น]: Clones a repository into a new directory.
  3. ๐—ด๐—ถ๐˜ ๐—ฎ๐—ฑ๐—ฑ [๐—ณ๐—ถ๐—น๐—ฒ]: Adds a file or changes in a file to the staging area.
  4. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜ -๐—บ "[๐—บ๐—ฒ๐˜€๐˜€๐—ฎ๐—ด๐—ฒ]": Records changes to the repository with a descriptive message.
  5. ๐—ด๐—ถ๐˜ ๐—ฝ๐˜‚๐˜€๐—ต: Uploads local repository content to a remote repository.
  6. ๐—ด๐—ถ๐˜ ๐—ฝ๐˜‚๐—น๐—น: Fetches changes from the remote repository and merges them into the local branch.
  7. ๐—ด๐—ถ๐˜ ๐˜€๐˜๐—ฎ๐˜๐˜‚๐˜€: Displays the status of the working directory and staging area.
  8. ๐—ด๐—ถ๐˜ ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต: Lists all local branches in the current repository.
  9. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ๐—ผ๐˜‚๐˜ [๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต]: Switches to the specified branch.
  10. ๐—ด๐—ถ๐˜ ๐—บ๐—ฒ๐—ฟ๐—ด๐—ฒ [๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต]: Merges the specified branch's history into the current branch.
  11. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐—บ๐—ผ๐˜๐—ฒ -๐˜ƒ: Lists the remote repositories along with their URLs.
  12. ๐—ด๐—ถ๐˜ ๐—น๐—ผ๐—ด: Displays commit logs.
  13. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐˜€๐—ฒ๐˜ [๐—ณ๐—ถ๐—น๐—ฒ]: Unstages the file, but preserves its contents.
  14. ๐—ด๐—ถ๐˜ ๐—ฟ๐—บ [๐—ณ๐—ถ๐—น๐—ฒ]: Deletes the file from the working directory and stages the deletion.
  15. ๐—ด๐—ถ๐˜ ๐˜€๐˜๐—ฎ๐˜€๐—ต: Temporarily shelves (or stashes) changes that haven't been committed.
  16. ๐—ด๐—ถ๐˜ ๐˜๐—ฎ๐—ด [๐˜๐—ฎ๐—ด๐—ป๐—ฎ๐—บ๐—ฒ]: Creates a lightweight tag pointing to the current commit.
  17. ๐—ด๐—ถ๐˜ ๐—ณ๐—ฒ๐˜๐—ฐ๐—ต [๐—ฟ๐—ฒ๐—บ๐—ผ๐˜๐—ฒ]: Downloads objects and refs from another repository.
  18. ๐—ด๐—ถ๐˜ ๐—บ๐—ฒ๐—ฟ๐—ด๐—ฒ --๐—ฎ๐—ฏ๐—ผ๐—ฟ๐˜: Aborts the current conflict resolution process, and tries to reconstruct the pre-merge state.
  19. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐—ฏ๐—ฎ๐˜€๐—ฒ [๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต]: Reapplies commits on top of another base tip, often used to integrate changes from one branch onto another cleanly.
  20. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ผ๐—ป๐—ณ๐—ถ๐—ด --๐—ด๐—น๐—ผ๐—ฏ๐—ฎ๐—น ๐˜‚๐˜€๐—ฒ๐—ฟ.๐—ป๐—ฎ๐—บ๐—ฒ "[๐—ป๐—ฎ๐—บ๐—ฒ]" ๐—ฎ๐—ป๐—ฑ ๐—ด๐—ถ๐˜ ๐—ฐ๐—ผ๐—ป๐—ณ๐—ถ๐—ด --๐—ด๐—น๐—ผ๐—ฏ๐—ฎ๐—น ๐˜‚๐˜€๐—ฒ๐—ฟ.๐—ฒ๐—บ๐—ฎ๐—ถ๐—น "[๐—ฒ๐—บ๐—ฎ๐—ถ๐—น]": Sets the name and email to be used with your commits.
  21. ๐—ด๐—ถ๐˜ ๐—ฑ๐—ถ๐—ณ๐—ณ: Shows changes between commits, commit and working tree, etc.
  22. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐—บ๐—ผ๐˜๐—ฒ ๐—ฎ๐—ฑ๐—ฑ [๐—ป๐—ฎ๐—บ๐—ฒ] [๐˜‚๐—ฟ๐—น]: Adds a new remote repository.
  23. ๐—ด๐—ถ๐˜ ๐—ฟ๐—ฒ๐—บ๐—ผ๐˜๐—ฒ ๐—ฟ๐—ฒ๐—บ๐—ผ๐˜ƒ๐—ฒ [๐—ป๐—ฎ๐—บ๐—ฒ]: Removes a remote repository.
  24. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ต๐—ฒ๐—ฐ๐—ธ๐—ผ๐˜‚๐˜ -๐—ฏ [๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต]: Creates a new branch and switches to it.
  25. ๐—ด๐—ถ๐˜ ๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต -๐—ฑ [๐—ฏ๐—ฟ๐—ฎ๐—ป๐—ฐ๐—ต]: Deletes the specified branch.
  26. ๐—ด๐—ถ๐˜ ๐—ฝ๐˜‚๐˜€๐—ต --๐˜๐—ฎ๐—ด๐˜€: Pushes all tags to the remote repository.
  27. ๐—ด๐—ถ๐˜ ๐—ฐ๐—ต๐—ฒ๐—ฟ๐—ฟ๐˜†-๐—ฝ๐—ถ๐—ฐ๐—ธ [๐—ฐ๐—ผ๐—บ๐—บ๐—ถ๐˜]: Picks a commit from another branch and applies it to the current branch.
  28. ๐—ด๐—ถ๐˜ ๐—ณ๐—ฒ๐˜๐—ฐ๐—ต --๐—ฝ๐—ฟ๐˜‚๐—ป๐—ฒ: Prunes remote tracking branches no longer on the remote.
  29. ๐—ด๐—ถ๐˜ ๐—ฐ๐—น๐—ฒ๐—ฎ๐—ป -๐—ฑ๐—ณ: Removes untracked files and directories from the working directory.
  30. ๐—ด๐—ถ๐˜ ๐˜€๐˜‚๐—ฏ๐—บ๐—ผ๐—ฑ๐˜‚๐—น๐—ฒ ๐˜‚๐—ฝ๐—ฑ๐—ฎ๐˜๐—ฒ --๐—ถ๐—ป๐—ถ๐˜ --๐—ฟ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐˜€๐—ถ๐˜ƒ๐—ฒ: Initializes and updates submodules recursively.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published