Author Topic: git checkout how-to for Linux  (Read 8222 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