Author Topic: git checkout how-to for Linux  (Read 4550 times)

0 Members and 1 Guest are viewing this topic.

Offline Riverhead

I found a funny interview where Linus Torvalds talks about git :D
http://typicalprogrammer.com/linus-torvalds-goes-off-on-linux-and-git/
Quote
I’m not sure. It’s getting hard to predict the next technology fashion. I have a text editor I’ve been using myself that is so complicated it makes VIM look like Notepad — maybe I’ll release that.
Wait what??


LOL. I thought text editing was solved. Does it display text in three dimensions so you can literally fork a line of thinking?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
I found a funny interview where Linus Torvalds talks about git :D
http://typicalprogrammer.com/linus-torvalds-goes-off-on-linux-and-git/
Quote
I’m not sure. It’s getting hard to predict the next technology fashion. I have a text editor I’ve been using myself that is so complicated it makes VIM look like Notepad — maybe I’ll release that.
Wait what??

38PTSWarrior

  • Guest

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc

The number (or at least the first digits of it) is located on the left side of the release below the tag that says 0.4.7

Offline archLinuxUser

  • Newbie
  • *
  • Posts: 4
    • View Profile
Cool!  Thanks for the info!

You are running 0.4.7
The about output shows that it's commit 987d55167097aceab2fdf7ba98bc6ff0c255378d which is tagged in the git repo as 0.4.7
You can use gitk to view the commits and tags.




I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}

Offline bitder

  • Full Member
  • ***
  • Posts: 65
    • View Profile
You are running 0.4.7
The about output shows that it's commit 987d55167097aceab2fdf7ba98bc6ff0c255378d which is tagged in the git repo as 0.4.7
You can use gitk to view the commits and tags.




I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}
wallet_account_set_approval delegate.bitder 1

Offline archLinuxUser

  • Newbie
  • *
  • Posts: 4
    • View Profile

I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Ah .. I know see your issue ..

git pull origin master
is what you want to do
or even better
git pull origin 0.4.7

38PTSWarrior

  • Guest

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
get the repo first:

git clone https://github.com/dacsunlimited/bitsharesx.git

once you have it you can update it with
git pull

38PTSWarrior

  • Guest
When I do git pull this comes:

bitsharesx$ git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>


Should I put something after git pull?

Offline Riverhead




I compile only the client, using "make bit shares_client"

Will that capture changes in the tool kit?

Offline Riverhead

Go to your source directory of your previous version (mine is/home/river/github/bitsharesx) and type:
git pull
This just pull the delta
git checkout 0.4.6
./setenv.sh
git submodule init
git submodule update
cmake .
make

38PTSWarrior

  • Guest
You gave me some good info, thx!
I could not wait for an answer and started already, almost at the 78% peak..

Next time I will use your tips. I guess it saves tons of time to only make bitshares_client.

Offline svk

Thanks, so now I will update to 0.4.7 by doing:

Delete bitsharesx and everything but the wallet folder of BitShares X (I have made a wallet backup with wallet_export_to_json <json_filename>)

Go to terminal
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.7
git submodule init
git submodule update
cmake .
make

Correct?
I do the same thing, except for deleting the old directory. I clone into a new one with the version name, and keep the old one for a while just in case..

I compile only the client, using "make bit shares_client"
Worker: dev.bitsharesblocks

38PTSWarrior

  • Guest
Thanks, so now I will update to 0.4.7 by doing:

Delete bitsharesx and everything but the wallet folder of BitShares X (I have made a wallet backup with wallet_export_to_json <json_filename>)

Go to terminal
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.7
git submodule init
git submodule update
cmake .
make

Correct?
« Last Edit: August 23, 2014, 01:03:01 pm by 38PTSWarrior »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
git clone https://github.com/dacsunlimited/bitsharesx.git
git checkout 0.4.7

Do I have to go to the bitsharesx folder in the terminal and then type "git checkout 0.4.7".
Basically this is what you need to do .. yes

Or maybe a better question: How can I see the version while running the client. I cannot find a command, thanks!

Not really .. if you run "about" in the console you can see your git-revision which is a longer string
mine looks like

Code: [Select]
{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "10 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "37 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 09:59:29"
}

38PTSWarrior

  • Guest
I know these instructions, but I always wonder what this means:


"For Linux users, remember to checkout the tag 0.4.7 first"


git clone https://github.com/dacsunlimited/bitsharesx.git
git checkout 0.4.7

Do I have to go to the bitsharesx folder in the terminal and then type "git checkout 0.4.7".

Or maybe a better question: How can I see the version while running the client. I cannot find a command, thanks!

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
checkout the FULL explanation
http://wiki.bitshares.org/index.php/BuildInstructionsBitSharesX

however, building from source is for 'advanced users' but I realize that there is no binary for linux users .. we should quickly change that

38PTSWarrior

  • Guest
Hi, I don't know how to do the git checkout command. 1000 thx!