#git checkout
Explore tagged Tumblr posts
kaiserouo · 8 months ago
Text
(prev | next | first)
Tumblr media Tumblr media Tumblr media Tumblr media
whoops
65 notes · View notes
snarp · 1 year ago
Text
I'm allowed to cause terrible problems
11 notes · View notes
kaiasky · 2 years ago
Text
git branch -b should alias to git checkout -b. You knew what i meant, fucker
12 notes · View notes
Text
There are a lot of valid criticisms to be made about AI art generators and large language models, both in terms of ethics and practicality, but some people out there are using the stupidest arguments I've ever seen and seem to be motivated primarily by a kneejerk "ai = bad so any coherent thought I can string together about that must be a valid argument" sort of reaction.
You look at posts about problems with AI art and it's like:
someone who sounds like my stepfather complaining that those newfangled automatic checkouts will put all the checkout chicks out of work and bring down society by putting them all on The Dole and turning them into bludgers instead of hard-working young ladies
someone who sounds like legislator in the early 2000's arguing that video games "aren't real art"
someone with a well-reasoned and cogent argument about copyright, the labour market, and the increasing ability of bots to make the world more terrible, and how AI is one new small part of that
someone who sounds like a teen arguing that making avatars in picrew is anti-art because it's depriving real artists of work and if you want a profile pic on some random forum then you should either Git Gud and draw it yourself from scratch or make money and pay someone else to do it
2K notes · View notes
ashhaven · 9 months ago
Text
I know I don’t have a lot of programmers following me
But me and some friends a d colleagues just workshopped the git fucker 9000
git fetch && git checkout master && git branch —list -r | sort -R | xargs -L1 'git merge —strategy=ort —strategy-options=theirs -q —squash' && git reset $(git rev-list --max-parents=0 HEAD) --soft && git add -A && git commit --amend -m "lol, lmao even" && git branch --list | xargs -L1 'git branch -D' && git branch --list -r | xargs -L1 'git branch -D -r' && git push -u origin master -f
Do not run this
20 notes · View notes
goblin-enjoyer · 8 months ago
Text
ah crabp have not drawn in a bit, trying to be more consistent so I get less skill falloff (i swear what is this, the high warlord grind? def need this to be patched) can't figure out what homestuck git to draw next (i am trying to draw all the homestuck gits, well most of em at least) and i keep coming up against a wall. (i can't think of which one to do next) so i make quicke poll (at probably too late a time for it to do anything, thus likely getting me nowhere in my stuckness. i mean i have a 8 ball specifically for this kind of thing so if push comes to shove i'll just use that) to make decisions easier and get juices flowing (parentheses)
there we go this should help me get an order and thought on things. thanks in advance to all who help out here and if you are wondering "hey what kinda art this git do?" then just checkout my art tag (or i guess homestuck tag if you want to see my descent to madness lolbk) I have been trying to do all the homestuck "main" characters with random other characters. been fun and useful in learning how to draw humanoids. that and homestuck characters are just fun to draw at times don't even need a parenthesis for that.
8 notes · View notes
shieldfoss · 1 year ago
Text
Git checkout autocomplete
when i do git branch (tab) I get a list of two options - the main branch and the one I created on this machine.
when I do git switch (tab) I get my two locals, but also a couple of extra options that are on the remote.
So Far So GoodExpected.
But when I do git checkout (tab) I get a bunch of stuff I don' t recognize: "DIsplay all 265 possibilities? (y or n)"
what... are these extra branches? My best guess is "old branches that were merged, but that merge remains part of git history despite the branch being deleted" - does that sound right?
14 notes · View notes
wayfire-official · 2 months ago
Text
does anyone know how to nicely manage dark/light mode stuff in dotfiles? like, some universal way to change what config file is used?
i currently have a second branch where i have light mode configs, but tbh it's kinda bothersome. in theory i could just do git checkout and all the files get switched, but things such as my wayfire.ini are difficult to keep updated on both branches, so my main branch is behind
5 notes · View notes
yasirinsights · 2 months ago
Text
GitHub and Git Commands: From Beginner to Advanced Level
Tumblr media
Git and GitHub are essential tools for every developer, whether you're just starting or deep into professional software development. In this blog, we'll break down what Git and GitHub are, why they matter, and walk you through the most essential commands, from beginner to advanced. This guide is tailored for learners who want to master version control and collaborate more effectively on projects.
GitHub and Git Commands
What Is Git?
Git is a distributed version control system created by Linus Torvalds. It allows you to track changes in your code, collaborate with others, and manage your project history.
What Is GitHub?
GitHub is a cloud-based platform built on Git. It allows developers to host repositories online, share code, contribute to open-source projects, and manage collaboration through pull requests, issues, and branches
Why Learn Git and GitHub?
Manage and track code changes efficiently
Collaborate with teams
Roll back to the previous versions of the code
Host and contribute to open-source projects
Improve workflow through automation and branching
Git Installation (Quick Start)
Before using Git commands, install Git from git-scm.com.
Check if Git is installed:
bash
git --version
Beginner-Level Git Commands
These commands are essential for every new user of Git:
1. git init
Initialises a new Git repository.
bash
git init
2. git clone
Clones an existing repository from GitHub.
bash
git clone https://github.com/user/repo.git
3. git status
Checks the current status of files (modified, staged, untracked).
bash
git status
4. git add
Stage changes for commit.
bash
git add filename # stage a specific file git add . # stage all changes
5. git commit
Records changes to the repository.
bash
git commit -m "Your commit message"
6. git push
Pushes changes to the remote repository.
bash
git push origin main # pushes to the main branch
7. git pull
Fetches and merges changes from the remote repository.
bash
git pull origin main
Intermediate Git Commands
Once you’re comfortable with the basics, start using these:
1. git branch
Lists, creates, or deletes branches.
bash
git branch # list branches git branch new-branch # create a new branch
2. git checkout
Switches branches or restores files.
bash
git checkout new-branch
3. git merge
Merges a branch into the current one.
bash
git merge feature-branch
4. git log
Shows the commit history.
bash
git log
5. .gitignore
Used to ignore specific files or folders in your project.
Example .gitignore file:
bash
node_modules/ .env *.log
Advanced Git Commands
Level up your Git skills with these powerful commands:
1. git stash
Temporarily shelves changes not ready for commit.
bash
git stash git stash apply
2. git rebase
Reapplies commits on top of another base tip.
bash
git checkout feature-branch git rebase main
3. git cherry-pick
Apply the changes introduced by an existing commit.
bash
git cherry-pick <commit-hash>
4. git revert
Reverts a commit by creating a new one.
bash
git revert <commit-hash>
5. git reset
Unstages or removes commits.
bash
git reset --soft HEAD~1 # keep changes git reset --hard HEAD~1 # remove changes
GitHub Tips for Projects
Use Readme.md to document your project
Leverage issues and pull requests for collaboration
Add contributors for team-based work
Use GitHub Actions to automate workflows
Final Thoughts
Mastering Git and GitHub is an investment in your future as a developer. Whether you're working on solo projects or collaborating in a team, these tools will save you time and help you maintain cleaner, safer code. Practice regularly and try contributing to open-source projects to strengthen your skills.
Read MORE: https://yasirinsights.com/github-and-git-commands/
2 notes · View notes
sevarix-blogs · 5 months ago
Text
a few months ago my coworker was like "oh yeah you can use dash (-) to go back to your last branch" and it blew my mind
git checkout -
changed my life 😭
3 notes · View notes
technicallywrite · 2 years ago
Text
Progress update on Cosmosgate
I had promised myself I'd take a break from writing after reaching The Kiss (ie Chapter 30). The idea was that Cosmosgate would go on hiatus for a few weeks while I plotted out the next bunch of chapters, which only existed as rough outlines so far.
I'm happy to say I did that and the detailed plotting went faster than anticipated —in part because I figured out how to adapt some tricky bits of original Big Finish audio that I'd thought were going to be stumpers— so now I'm moving on to rough-drafting, with the goal of resuming posting chapters within the next couple of weeks.
Here are the working titles for chapters 31-37:
31- Power play
32- Back in the fold
33- A bridge too far
34- And yet, she persisted
35- Control-alt-delete
36- Git checkout master
37- Fianchetto
Feel free to speculate about the title references, I had a bit of fun with them 😆
12 notes · View notes
soophia-studies · 2 years ago
Text
100 days of code - day 11
Hi, today I didn't study rust, today I studied JavaScript. Well, I was thinking with myself, I need to finish that full stack course that I started a while ago. Because I never finish what I begin. So I'm going to focus on it a little more. To be honest, I should've taken this decision before. But I want to continue to study rust every day, a little at least.
So, I set my all the node development environment and started to code. I already know a little of JS, but I'm not too comfortable as I'm with C/C++, so I need to practice more.
Also, I was seeing that I know git, but only the basis, like commit, push, pull, and I'm not too used to use commands like branch, merge, rebase, checkout, etc. I've already used them, but since I'm not constantly branching, I have forgotten. So I'm practicing these git commands and git good practices as well.
That's it. Sometimes I feel a little lost, because programming has so many paths to choose from. It can give me a little anxiety, but, as long as I'm studying, progressing, and not paralyzed, I think it's ok.
Tumblr media
7 notes · View notes
bigmeatyflaps · 2 years ago
Note
how do i get drugs if everyone thinks im weird bc im a tranny
darknet
install tails os on a usb + open crypto exchange account (i use kraken but there's a shit ton around) and git a wallet (i only buy using monero & use their monero gui wallet) + read up on pgp & dnbible + idk what markets r popular these days cuz i haven't ordered in a long time (SAD!) but checkout dread or dark.fail ig
have fun 👍
8 notes · View notes
mentalisttraceur-software · 2 years ago
Text
One frustrating edge case with Syncthing and Git to look out for:
Empirically, just based on observed behavior, it seems that Git has lots of commands that you'd think are read-only, but which in some cases will mutate internal Git state - specifically, the index (normally at ".git/index"). I haven't yet figured out if this can ever happen with other internal ".git" files.
This creates a race condition with any networked filesystem sync - if you do some work on a local checkout of a repo, then switch to another device to continue where you left off, you can't safely check if Syncthing has synced the local changes to the repo in the most intuitive way: by running commands like "git status".
You have to wait until you're sure the changes have synced, or you'll get a Syncthing merge conflict with the Git index file, which will manifest as weird/unexpected results from commands like "git status" and "git diff [--staged]".
(If you want to look more deeply into this, I'd probably start by reading and understanding Git's "Racy Git" documentation, which seems indirectly relevant - it's talking about a different race condition, but I wouldn't be surprised if the optimization which causes that race condition and/or any workaround which mitigates it contributes to this race condition.)
Luckily, it turns out that we can force Git to never mutate the index. With recent Git versions, there's a top-level "--no-optional-locks" flag that will do it: "git --no-option-locks status".
6 notes · View notes
hessofather · 1 year ago
Text
Chapter 4: Math is a Drinking Game
While I may not have had the best father in the world, I believe I may have the best grandpa in the world. He is the reason I am who I am today in all the best ways.
Another one of my first memories in life is my grandpa setting me on the hood of his truck and getting surrounded by cows and screaming. I heard my grandpa chuckle and say “go on now ladies, git.” Then seeing him emerge from the cattle, looking like an old cowboy Jesus, picking me up, and setting me in the truck saying “you stay put, I’ll be right out here. Don’t drink my beer” I drank the beer.
I spent a lot of my time with my grandpa as a kid. Most of the time was spent going out to count cattle and then heading out to the bar, where I’d walk up to old men and start talking until they’d finally cave and give me pool table money, just to get me out of their hair. When I got tired of playing pool I’d find my grandpa sitting at the bar, tell the bar tender that I wanted my usual, (Rootbeer in a beer bottle), and pop some chew (shredded beef jerky in a can) in my lower lip, and sit in silence as my grandpa watched whatever sport was on the tv that day.
We went out and counted cows, then headed to the bar every Wednesday. Beer was half priced on Wednesdays so my grandpa and I called it “cheapy Wednesday.” After the bar we’d head to the dollar general to pick up snacks for the day, and whatever household item my grandma had requested we pick up. The checkout lady would say “How’s it going Handsome? And hi there brown eyes!” I would smile and my grandpa would say “Oh just got little boss with me today.” We’d finish checking out and he’d say “where to now boss?” By then it was almost lunch time so I would request to go home and have a grilled cheese for lunch. I still to this day believe my grandpa makes the best grilled cheese in the world.
Once we got back to his house he’d make me a grilled cheese, swaying just a little after all the beers he’d just drank. Still though, they came out perfect every time. Once the food was finished cooking we’d head to his sitting room and watch Matlock, Forensic Files, cold cases, and looney toones. I preferred Forensic Files over Cold Cases, but didn’t mind it since my grandpa preferred Cold Cases. I always hated not getting an answer, I’d think about it for days. “It was probably the husband, it always is.” My five-year-old brain concluded.
Once Matlock was over we’d have the rest of the shows playing “in the background” while I did schoolwork. My grandpa was in charge of teaching me science, math, and history. When we’d get to the math portion things always got intense. I sucked at math and so did he. So we’d be struggling to learn it together. He’d finally make a breakthrough and understand the question, try to explain it to me, and fail miserably, take a shot of Jim Beam and tell me the answer saying “you’ll never use that in life anyway.”
My mom worked for my grandma, cleaning house, taking her on errands and to doctors appointments, filling her medication, and cooking. Once my mom was done for the day we’d go home and finish my schoolwork. Spelling, English, Bible, and Music. I played piano for at least 30 minutes to an hour every day after the rest of schoolwork was finished. Then clean until dinner was ready, eat dinner and clean up, take a bath, go to bed. This was my daily routine (minus the bar in the mornings, that was only Wednesdays.) until I was about 13.
My grandpa, while not even technically blood related, was the member of my family I felt the closest and safest with. He would always tell me his version of the day I was born which always went “I looked at you in that little room through the glass, you looked back at me and smiled, because you instantly knew you had me wrapped around your finger.” And boy did I know it. I knew that I could call him up at any hour, day or night, and simply ask him to come over with a snack and he’d be there in about 20 minutes. I always told him “You can say no. I’ll be sad and I might cry. But you can tell me no.” To which he always replied “I can’t say no to you darlin, don’t know how.”
My grandpa and I had lots of little sayings that we’d repeat to each other all the time. Like “I got one fist of iron and another fist of steel, if the left one don’t git ya then the right one will.” “Im a mean motor scooter and a bag go getter.” We had songs we’d sing like a song about how the snakes come out at night, and a song, I recently learned he didn’t make up, called big rock candy mountain. Anytime my grandpa would sing that song I thought it was so silly and that he had just made it up to make me laugh. Finding the actual original version of it on Spotify not too long ago, made me so happy and laugh at the fact that I thought that was his song all these years.
One of our greatest traditions every year was the day before Mother’s Day. He’d take me out to this random spot in the country and we’d stop and pick yellow trumpet flowers, tons of em’. Take them home, cut and wash them, put them in vases and give one set to my grandma and one set to my mom. They acted surprised every single year.
As I got older my grandpa tried to help me navigate being a “young woman” in the best ways he could. I brought a pair of high heels to his house, threw them on the ground frustrated, “I can’t walk in these damn things grandpa. I’d rather just be barefoot.” He said “Now sis, ya can’t be barefoot everywhere you go. Try to walk in them, let me see what yer doin.” I begrudgingly put them back on and tried to walk across the floor, looking like a newborn calf tying to figure out left from right. “I think you need to put more pressure on yer tippy toes. Like this.” To which he stood up on his tippy toes walking a few steps. What he didn’t realize was that my grandma and mom were watching this whole encounter trying their best to not laugh. He noticed them and said “I’m just tryna help the girl out! She’s gotta learn someday somehow. And it ain’t gonna happen if she keeps doin it like that.” To this day I still can’t walk in heels.
I remember bleeding through my shorts when I got my period at my grandpas house. Then out of embarrassment I hid crying and trying to not let my grandpa know that this horrible tragedy had occurred. I became a . . . Woman. Gross. He put two and two together and figured out what had happened, came to the bathroom door and knocked. Then simply asked “you alright sis?” I was crying and angry and said “IM FINE LEAVE ME ALONE.” To which he just chuckled and said “alright I’ll call yer mom.”
My grandpa was the first person to attempt to teach me how to drive, that ended quickly after I put us SLIGHTLY in a ditch. In my defense that was the first time I’d ever heard him yell at me. He was saying “SIS STOP. THE DITCH.” But still, I was upset that he’d yelled. He recalls the story a little differently than I do but my perspective is the only one you’re getting out of me.
I remember after I got one of my first tattoos on my shoulder blade. He came up to me and smiled real big, then gave me a “howdy” kind of smack on the shoulder directly on the tattoo. I winced in pain and he looks at me and laughs saying “Oh I’m sorry sis, I figured that there’s no way that’s real. Since I’ve been tellin you yer whole life not to get tattoos.”
My grandpa will always hold one of the highest places in my mind. Despite his blurry past of things he would never talk about. I choose to see the man that practically raised me instead of whatever version he has made himself to be in his own mind. While he continues to get older, I continue to worry more and more about the dreaded day that he leaves this world. I have all his favorite songs memorized and he tells me “when I go I want you to take my cowboy hats. Yer the only one I trust to wear em’ right.” To which I reply “Well that’s never gonna happen. You’ll be the last one standing on this earth along with the cockroaches.” He’ll chuckle and say “Nope that’s yer grandma. It’ll be her, cockroaches, and Twinkies.” We’ll laugh and it’ll go silent while he resumes watching college football and I sit there trying to not let the lump in my throat win. I dread the day he says goodbye, but I know that every time I think of, or hear his favorite songs, that’ll just be him reminding me that I still suck at wearing heels.
2 notes · View notes
moose-mousse · 2 years ago
Text
I just downloaded a program, as a git repository. It allowed you to have it work in several different ways. Which was achieved by simply using "git checkout" to check out whatever branch you want. I love it. That is so smart!
5 notes · View notes