Lädt...


🔧 Linux and Git-GitHub cheat sheet!


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

🐧 Linux & 🐙 Git-GitHub Cheat Sheet 🌟

Master Your Workflow with This Linux & Git-GitHub Cheat Sheet 🌟

Whether you're a developer, system administrator, or just starting your journey into the world of coding, knowing essential Linux commands and Git-GitHub operations can significantly boost your productivity. This cheat sheet is designed to help you navigate the Linux filesystem, manage files, monitor system performance, and efficiently handle version control with Git. From basic navigation to advanced branching and merging, these commands will empower you to streamline your workflow and manage projects more effectively. Keep this handy guide at your fingertips and take control of your development environment!

🐧 Linux Commands

🔍 Basic Navigation
  • pwd: Print the current working directory
  • ls: List files and directories
  • ls -l: List with detailed information (long format)
  • ls -a: List all files, including hidden files
  • cd [directory]: Change to the specified directory
  • cd ..: Move up one directory level
  • mkdir [directory]: Create a new directory
  • rmdir [directory]: Remove an empty directory
🛠️ File Operations
  • touch [filename]: Create a new empty file
  • cat [filename]: Display the contents of a file
  • cp [source] [destination]: Copy file(s) from source to destination
  • mv [source] [destination]: Move or rename file(s)
  • rm [filename]: Delete a file
  • rm -r [directory]: Delete a directory and its contents
  • nano [filename]: Open a file in the Nano text editor
  • chmod [permissions] [file]: Change file permissions (e.g., chmod 755 script.sh)
🔧 System Monitoring
  • top: Display active processes and system usage
  • ps aux: List all running processes with detailed information
  • df -h: Show disk space usage
  • du -sh [dir]: Display the total disk usage of a directory
  • free -h: Show memory usage (RAM)
  • uptime: Show how long the system has been running
🌐 Networking
  • ifconfig / ip a: Display network interfaces and IP addresses
  • ping [address]: Test connectivity to a host (e.g., ping google.com)
  • curl [url]: Transfer data from or to a server (fetch web content)
  • scp [file] [user@host]: Securely copy files to/from a remote host
  • ssh [user@host]: Securely connect to a remote host via SSH

🐙 Git & GitHub Commands

📂 Repository Management
  • git init: Initialize a new Git repository
  • git clone [url]: Clone a repository from a URL
  • git status: Check the status of your working directory
  • git add [file]: Stage a file for the next commit
  • git add .: Stage all changes for the next commit
  • git commit -m "[message]": Commit staged changes with a message
  • git push: Push commits to a remote repository
  • git pull: Fetch and merge changes from the remote repository
  • git fetch: Download changes from the remote without merging
  • git log: View the commit history
🌳 Branching & Merging
  • git branch: List all branches
  • git branch [branch-name]: Create a new branch
  • git checkout [branch-name]: Switch to the specified branch
  • git checkout -b [branch-name]: Create and switch to a new branch
  • git merge [branch-name]: Merge the specified branch into the current branch
  • git branch -d [branch-name]: Delete a branch
🌟 Advanced Git
  • git reset --hard [commit-hash]: Reset to a specific commit and discard all changes
  • git stash: Save uncommitted changes for later
  • git stash pop: Restore the most recent stashed changes
  • git rebase [branch-name]: Reapply commits on top of another base tip
  • git remote add origin [url]: Link the local repository to a remote repository
  • git diff: Show changes between commits, branches, or the working directory

💡 Cheat Sheet Tips 📌

  • Combine Commands: Use && to chain commands (e.g., mkdir new-dir && cd new-dir).
  • Use Wildcards: * matches multiple files (e.g., rm *.txt deletes all .txt files).
  • Shortcut Branch Switching: git checkout - switches back to the previous branch.
  • Use Aliases: Set up aliases for frequently used commands (e.g., alias gs='git status').

This cheat sheet covers essential Linux commands and Git operations to help you navigate, manage files, monitor systems, and efficiently handle your Git repositories. Save it for quick reference whenever you're working on your projects!

...

🔧 Git Cheat Sheet: A Beginner's Guide to Git Commands and Best Practices


📈 41.37 Punkte
🔧 Programmierung

🔧 Git Cheat Sheet - 40+ Git Comands You Should Know


📈 40.06 Punkte
🔧 Programmierung

🔧 Git Cheat Sheet – Git Commands You Should Know


📈 40.06 Punkte
🔧 Programmierung

🔧 Git Cheat Sheet – Helpful Git Commands with Examples


📈 40.06 Punkte
🔧 Programmierung

🔧 Git Commands You Need for Hacktoberfest 2024 - Git cheat sheet


📈 40.06 Punkte
🔧 Programmierung

🔧 Git cheat sheet and detailed guide


📈 33.42 Punkte
🔧 Programmierung

🔧 Git: Cheat Sheet (advanced)


📈 32.1 Punkte
🔧 Programmierung

🐧 Git Commands Cheat Sheet


📈 32.1 Punkte
🐧 Server

🐧 Git Cheat Sheet: Alles Wichtige auf einen Blick


📈 32.1 Punkte
🐧 Server

🔧 Git Commands - Cheat Sheet for All Developers


📈 32.1 Punkte
🔧 Programmierung

🔧 Git command cheat sheet


📈 32.1 Punkte
🔧 Programmierung

🔧 GIT Commands Cheat Sheet


📈 32.1 Punkte
🔧 Programmierung

🔧 Git cheat sheet


📈 32.1 Punkte
🔧 Programmierung

🐧 The ultimate Git cheat sheet for developers


📈 32.1 Punkte
🐧 Linux Tipps

🔧 Git: Cheat Sheet (advanced)


📈 32.1 Punkte
🔧 Programmierung

🔧 Git Commands Cheat Sheet


📈 32.1 Punkte
🔧 Programmierung

🔧 Git Cheat Sheet: Essential Commands for Version Control


📈 32.1 Punkte
🔧 Programmierung

🔧 💡📖 Essential Git Commands: Your Go-To Cheat Sheet for Efficient Version Control


📈 32.1 Punkte
🔧 Programmierung

🔧 📝 Git Cheat Sheet for Developers


📈 32.1 Punkte
🔧 Programmierung

🔧 Git Command Cheat Sheet


📈 32.1 Punkte
🔧 Programmierung

🔧 The Essential Git Cheat Sheet: Master Version Control Like a Pro


📈 32.1 Punkte
🔧 Programmierung

🔧 Git Cheat Sheet for Hacktoberfest


📈 32.1 Punkte
🔧 Programmierung

🔧 Complete Git Cheat sheet


📈 32.1 Punkte
🔧 Programmierung

🔧 GIT : Cheat Sheet


📈 32.1 Punkte
🔧 Programmierung

🔧 📝 Git Cheat Sheet 🚀


📈 32.1 Punkte
🔧 Programmierung

📰 Security In 5: Episode 306 - Tools, Tips and Tricks - Linux Command Cheat Sheet


📈 27.56 Punkte
📰 IT Security Nachrichten

🐧 Any cheat sheet for Linux?


📈 26.25 Punkte
🐧 Linux Tipps

🐧 Some Linux Commands "Cheat-sheet"


📈 26.25 Punkte
🐧 Linux Tipps

🐧 Cheat sheet for running rootless containers on Linux with Podman.


📈 26.25 Punkte
🐧 Linux Tipps

🐧 This is my personal linux commands cheat sheet. Not perfect but pretty useful for me


📈 26.25 Punkte
🐧 Linux Tipps

🐧 I made a vi editor/grep command cheat sheet for others who are taking Linux college classes!


📈 26.25 Punkte
🐧 Linux Tipps

🐧 Kali Linux Commands cheat sheet


📈 26.25 Punkte
🐧 Linux Tipps

matomo