Skip to content

Commit b57d574

Browse files
author
Jonas
committed
two posts translated
1 parent 9c267f7 commit b57d574

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

_posts/2009-01-09-checkout-remote-tracked-branch.textile

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ title: checkout tracked remote branch
55
category: intermediate
66
---
77

8-
I frequently need to do this when setting up or syncing my various machines, and I seem to forget the command all the time. So let's say you've got more than one branch on your remote, and you want to bring it down into your local repository as well:
8+
Det är ofta jag behöver göra detta när jag installerar eller synkar mina olika maskiner och jag glömmer kommandot hela tiden. Säg att du har mer än en branch på din remote och du vill kopiera ner det till ditt lokala repository också:
99

1010
p=. !http://gitready.com/images/branches.png!
1111

12-
Viewing information on the remote should look something like this:
12+
Informationen på remote skulle se ut ungefär som det här:
1313

1414
<pre>
1515
$ git remote show origin
@@ -22,17 +22,17 @@ $ git remote show origin
2222
haml master
2323
</pre>
2424

25-
Luckily, the command syntax for this is quite simple:
25+
Lyckligtvis är kommandot för detta ganska enkelt:
2626

2727
<pre>
2828
git checkout --track -b
2929
<local branch> <remote>/<tracked branch>
3030
</pre>
3131

32-
So in my case, I used this command:
32+
Så i mitt fall använder jag detta kommando:
3333

3434
@git checkout --track -b haml origin/haml@
3535

36-
You can also use a simpler version:
36+
Du kan också använda en enklare variant:
3737

3838
@git checkout -t origin/haml@
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
---
22
published: false
33
layout: post
4-
title: stashing your changes
4+
title: stashing dina förändringar
55
category: beginner
66
---
77

8-
Stashing is a great way to pause what you're currently working on and come back to it later. For example, if you working on that awesome, brand new feature but someone just found a bug that you need to fix. Add your changes to the index using
8+
Stashing är ett bra sätt att pausa det du håller på med just nu och komma tillbaka till det senare. Till exempel, du arbetar med en helt ny funktion och någon hittar en bug i den som du måste fixa. Du lägger till dina ändringar till indexet med:
99

1010
@git add .@
1111

12-
Or add individual files to the index, your pick. Stash your changes away with:
12+
Eller lägg till enstaka filer till indexet om du vill. Stasha dina ändringar med:
1313

1414
@git stash@
1515

16-
And boom! You're back to your original working state. Got that bug fixed? Bring your work back with:
16+
Och boom! Du är tillbaka till ditt ursprungsläge. Har du fixat buggen nu? Gå tillbaka till ditt arbete med:
1717

1818
@git stash apply@
1919

20-
You can also do multiple layers of stashes, so make sure to use
20+
Du kan skapa flera lager med stash, så använd
2121

2222
@git stash list@
2323

24-
To check out all of your current ones. If you need to apply a stash from deeper in the stack, that's easy too. Here's how to apply the second stash you've got:
24+
För att check out alla dina nuvarande. Om du behöver applya en stash länge ner i stacken är det också enkelt. För att lägga till din andra stash skriver du:
2525

2626
<code>git stash apply stash@{1}</code>
2727

28-
You can also easily apply the top stash on the stack by using ("Thanks jamesgolick!":http://jamesgolick.com/):
28+
Du kan enkelt lägga till den översta stashen på stacken genom att använda ("Tack jamesgolick!":http://jamesgolick.com/):
2929

3030
@git stash pop@
3131

32-
A note with this command, it deletes that stash for good, while apply does not. You can manually delete stashes with:
32+
Notera att det här kommandot raderar den stashen för gott, medan apply behåller den. Du kan radera stashes manuellt med kommandot:
3333

3434
@git stash drop <id>@
3535

36-
Or delete all of the stored stashes with:
36+
Eller radera alla lagrade stashes med:
3737

3838
@git stash clear@

0 commit comments

Comments
 (0)