Skip to content

Instantly share code, notes, and snippets.

@farukcan
Last active February 28, 2023 19:51
Show Gist options
  • Save farukcan/930ae86c1516371cd6e33028a470031d to your computer and use it in GitHub Desktop.
Save farukcan/930ae86c1516371cd6e33028a470031d to your computer and use it in GitHub Desktop.
Git Commands - Visual Powershell Repository
{
"Name" : "Git Commands",
"Author": "farukcan",
"Website" : "https:/farukcan.net",
"Commands" : [
{
"Name" : "πŸš€ Initialize folder",
"Scripts" : ["git init"]
},
{
"Name" : "🌐 Clone Repository",
"Scripts" : ["git clone {text:URL}"]
},
{
"Name" : "🟒 Status",
"Scripts" : ["git status"]
},
{
"Name" : "βž• Add All Files to Stage",
"Scripts" : ["git add ."]
},
{
"Name" : "πŸ’Ύ Commit",
"Scripts" : ["git commit -m \"{text:Message}\""]
},
{
"Name" : "⏬ Pull from remote",
"Scripts" : ["git pull"]
},
{
"Name" : "⏫ Push to remote",
"Scripts" : ["git push"]
},
{
"Name" : "⏫ Push and set upstream",
"Scripts" : ["git push -u {text:Remote Name} {text:Branch Name}"]
},
{
"Name" : "πŸ†• New branch",
"Scripts" : ["git branch {text:Branch Name}"]
},
{
"Name" : "πŸ” List branches",
"Scripts" : ["git branch -a"]
},
{
"Name" : "πŸ—‘οΈ Delete branch",
"Scripts" : ["git branch -d {text:Branch Name}"]
},
{
"Name" : "πŸ”› Merge branch",
"Scripts" : ["git merge {text:Branch Name}"]
},
{
"Name" : "πŸ”„ Rename branch",
"Scripts" : ["git branch -m {text:Current Branch Name} {text:New Branch Name}"]
},
{
"Name" : "πŸ”€ Switch branch",
"Scripts" : ["git checkout -b {text:Branch Name}"]
},
{
"Name" : "βž• Add Remote",
"Scripts" : ["git remote add {text:Remote Name} {text:URL}"]
},
{
"Name" : "πŸ—‘οΈ Remove Remote",
"Scripts" : ["git remote rm {text:Remote Name}"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment